From fc8f11f199f450a703c77514e40e1d509bf44100 Mon Sep 17 00:00:00 2001 From: Augusto1547 Date: Sat, 18 Apr 2026 10:57:10 -0300 Subject: [PATCH 1/5] =?UTF-8?q?Nova=20altera=C3=A7=C3=A3o=20no=20regedi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c7e435..a0e13b3 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,6 @@ - `git commit -m` - `git log` Tras todos os commits com todas as modificações - `git log --oneline` Faz o mesmo só que traz o resultado mais enchuto -- `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) \ No newline at end of file +- `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) + +- `git push origin main` enviar para o repositório \ No newline at end of file From 0514c200b0c57b2be906309aec7dd80e5c9a7b50 Mon Sep 17 00:00:00 2001 From: Augusto1547 Date: Sat, 18 Apr 2026 13:18:23 -0300 Subject: [PATCH 2/5] =?UTF-8?q?Cria=C3=A7=C3=A3o=20de=20script=20sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- TabuadaInteiro.java | 26 ++++++++++++++++++++++++++ script.sql | 9 +++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 TabuadaInteiro.java create mode 100644 script.sql diff --git a/README.md b/README.md index 9c7e435..808f9a4 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,5 @@ - `git commit -m` - `git log` Tras todos os commits com todas as modificações - `git log --oneline` Faz o mesmo só que traz o resultado mais enchuto -- `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) \ No newline at end of file +- `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) +- `git rebase -i HEAD~1` \ No newline at end of file diff --git a/TabuadaInteiro.java b/TabuadaInteiro.java new file mode 100644 index 0000000..6990c88 --- /dev/null +++ b/TabuadaInteiro.java @@ -0,0 +1,26 @@ +import java.util.Scanner; + +public class TabuadaInteiro { + public static void main(String[] args) { + + Scanner sc = new Scanner(System.in); + + System.out.println("Infome um número inteiro qualquer"); + int numero = sc.nextInt(); + if (numero < 0 || numero == 0) { + + System.out.println("Informe um número inteiro positivo."); + + } else { + + for (int i = 1; i < 11; i++) { + + System.out.printf("%d x %d = %d\n", numero, i, numero * i); + + } + } + + sc.close(); + + } +} \ No newline at end of file diff --git a/script.sql b/script.sql new file mode 100644 index 0000000..def673e --- /dev/null +++ b/script.sql @@ -0,0 +1,9 @@ +create database treina_recife; + +create table tb_alunos ( + id int auto_increment primary key, + nome varchar(50) not null, + email varchar(150) not null, + dataNascimento datetime not + +); \ No newline at end of file From 815b38fc65e4bd6b7c81174e6e207f76f9084b74 Mon Sep 17 00:00:00 2001 From: Augusto1547 Date: Sat, 18 Apr 2026 13:23:52 -0300 Subject: [PATCH 3/5] =?UTF-8?q?Inser=C3=A7=C3=A3o=20de=20registro=20na=20t?= =?UTF-8?q?abela?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script.sql b/script.sql index def673e..525c75b 100644 --- a/script.sql +++ b/script.sql @@ -4,6 +4,9 @@ create table tb_alunos ( id int auto_increment primary key, nome varchar(50) not null, email varchar(150) not null, - dataNascimento datetime not + dataNascimento datetime not null -); \ No newline at end of file +); + +insert into treina_recife.tb_alunos ('id', 'nome', 'email', 'data_nascimento') +values (1, "Alexandre de Souza Jr.", "alexandre@treinarecife.com.br", timestamp '1995-07-28'); From 379389440f49f6bb8c3816f35d2b741fb0a0cb1f Mon Sep 17 00:00:00 2001 From: Augusto1547 Date: Sat, 18 Apr 2026 13:27:21 -0300 Subject: [PATCH 4/5] =?UTF-8?q?Exclus=C3=A3o=20de=20registro=20da=20tabela?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- script.sql | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 808f9a4..fd94e5d 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,5 @@ - `git log` Tras todos os commits com todas as modificações - `git log --oneline` Faz o mesmo só que traz o resultado mais enchuto - `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) -- `git rebase -i HEAD~1` \ No newline at end of file +- `git rebase -i HEAD~1` +- git commit -am \ No newline at end of file diff --git a/script.sql b/script.sql index 525c75b..123ac98 100644 --- a/script.sql +++ b/script.sql @@ -10,3 +10,7 @@ create table tb_alunos ( insert into treina_recife.tb_alunos ('id', 'nome', 'email', 'data_nascimento') values (1, "Alexandre de Souza Jr.", "alexandre@treinarecife.com.br", timestamp '1995-07-28'); + +delete from treina_recife.tb_alunos where id = 1; + +drop table treina_recife.tb_alunos; \ No newline at end of file From 409540519d7472617199b5af480edf8790332ac8 Mon Sep 17 00:00:00 2001 From: Augusto1547 Date: Sat, 18 Apr 2026 14:19:46 -0300 Subject: [PATCH 5/5] Novos comandos git --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd94e5d..2f7f4e7 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,15 @@ - `git log` Tras todos os commits com todas as modificações - `git log --oneline` Faz o mesmo só que traz o resultado mais enchuto - `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) +- git push origin main: Envia seus commits do repostitório local para o remoto (branch main). +-git pull origin main +- - `git rebase -i HEAD~1` -- git commit -am \ No newline at end of file +- pull request normal e pelo git hub +- criar branch +- git commit -am +- git checkout cor_01; +- git checkout main +- git checkout -b cor_02 + +