From 7ed0c56324a1495479c8799da476abca985fc564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A3o=20Sukuakueche?= Date: Thu, 2 Nov 2023 22:03:36 +0100 Subject: [PATCH] Resolvendo problema conexao db --- conexao.php | 4 ++-- db.sql | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 db.sql diff --git a/conexao.php b/conexao.php index 0dd4e46..8bcc30a 100644 --- a/conexao.php +++ b/conexao.php @@ -1,10 +1,10 @@ connect_errno){ diff --git a/db.sql b/db.sql new file mode 100644 index 0000000..ff5358e --- /dev/null +++ b/db.sql @@ -0,0 +1,15 @@ +create database turmas; + +use turmas; + +create table sala10 ( + nome varchar(25) not null, + sobrenome varchar(25) not null, + idade int not null, + numero int not null, + sexo char(1) not null +); + +insert into sala10 values ('Pedro', 'Lucas', 18, 1, 'M'); +insert into sala10 values ('Jõao', 'Salvador', 19, 2, 'M'); +insert into sala10 values ('Maria', 'Salvador', 19, 3, 'F'); \ No newline at end of file