Last active
October 17, 2022 05:01
-
-
Save jonathasborges1/0861044119f13ef16e0a66fc225c20eb to your computer and use it in GitHub Desktop.
ProgramacaoWeb-atividade5p
This file contains hidden or 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
CREATE DATABASE escola | |
WITH | |
OWNER = postgres | |
ENCODING = 'UTF8' | |
CONNECTION LIMIT = -1 | |
IS_TEMPLATE = False; | |
CREATE SCHEMA escola AUTHORIZATION postgres; | |
CREATE SCHEMA IF NOT EXISTS escola; | |
CREATE TABLE aluno ( | |
id_alu SERIAL NOT NULL PRIMARY KEY, | |
nome_alu VARCHAR(50) NOT NULL, | |
cidade_alu VARCHAR(30), | |
tel_alu VARCHAR(30), | |
sexo_alu VARCHAR(10), | |
email_alu VARCHAR(50) | |
); | |
INSERT INTO aluno(nome_alu, cidade_alu, tel_alu, sexo_alu, email_alu) | |
VALUES ('Jonathas', 'Manaus', '988410440', 'M','[email protected]'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment