-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from luiscarlosjunior/refatorar_java_pastas
Adiciona nova estrutura descrita na issue #165
- Loading branch information
Showing
1,892 changed files
with
55 additions
and
7,192 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
.../Stored Procedure/PLSQL - Oracle/02-conceito-plsql/Aula 09/excecaoDefinidoPeloUsuario.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
35 changes: 35 additions & 0 deletions
35
Banco de dados/Stored Procedure/PLSQL - Oracle/02-conceito-plsql/Aula 09/exemploExcecao1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
8 changes: 0 additions & 8 deletions
8
Programação/Java/00-ExemplosCode/07-Construtores/Construtor/Hello.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
Programação/Java/00-ExemplosCode/07-Construtores/Construtor/Hi.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
Programação/Java/000-Exemplos/01-Introdução à linguagem Java
This file was deleted.
Oops, something went wrong.
72 changes: 0 additions & 72 deletions
72
Programação/Java/000-Exemplos/02-Tipos de dados, literais e variáveis
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.