Skip to content

Commit

Permalink
Merge pull request #166 from luiscarlosjunior/refatorar_java_pastas
Browse files Browse the repository at this point in the history
Adiciona nova estrutura descrita na issue #165
  • Loading branch information
profluiscaparroz authored Jun 26, 2021
2 parents 9853643 + 9b3e53e commit 309a89a
Show file tree
Hide file tree
Showing 1,892 changed files with 55 additions and 7,192 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DECLARE
V_CONTA NUMBER(3);
TURMA_CHEIA EXCEPTION;
BEGIN

SELECT COUNT(RA) INTO V_CONTA FROM ALUNO;

IF V_CONTA > 60 THEN
RAISE TURMA_CHEIA;
ELSE
DBMS_OUTPUT.PUT_LINE('Turma está com ' || V_CONTA || ' alunos');
DBMS_OUTPUT.PUT_LINE('Resta ' || (60 - V_CONTA) || ' vagas');
END IF;

EXCEPTION
WHEN TURMA_CHEIA THEN
DBMS_OUTPUT.PUT_LINE('Não foi possível incluir alunos');
DBMS_OUTPUT.PUT_LINE('Motivo: Turma cheia');
END;
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SET SERVEROUTPUT ON;

DECLARE

v_Aluno Aluno.RA%type := '555666777';
v_Nome Aluno.Nome%type;

BEGIN

SELECT NOME INTO V_NOME
FROM ALUNO;

DBMS_OUTPUT.putline('Achou o aluno(a) ' || v_nome);

EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE('Há mais de um aluno encontrado')

END;
/

DECLARE

v_Ra Aluno.RA%type := '555666777';
v_Nome Aluno.Nome%type;

BEGIN

SELECT NOME INTO V_NOME
FROM ALUNO WHERE RA = V_RA;

DBMS_OUTPUT.putline("Achou o aluno(a) " || v_nome);

END;

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions Programação/Java/000-Exemplos/01-Introdução à linguagem Java

This file was deleted.

This file was deleted.

78 changes: 0 additions & 78 deletions Programação/Java/000-Exemplos/03-Operadores

This file was deleted.

Loading

0 comments on commit 309a89a

Please sign in to comment.