Last active
July 23, 2023 11:54
-
-
Save mayararysia/5937c96192af587ddcc6f7b29cb15ddc to your computer and use it in GitHub Desktop.
Example query for mysql connection exercise
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
create database bd; | |
use bd; | |
CREATE TABLE `user` ( | |
`id` SERIAL PRIMARY KEY, | |
`name` VARCHAR(30) NOT NULL, | |
`cpf` VARCHAR(20) NOT NULL | |
); | |
INSERT INTO `user` (`name`, `cpf`) VALUES ('Leta Lestrange', '012.236.987-44'), ('Newt Scamander', '021.545.258-55'), | |
('Hermione Granger', '024.547.658-77'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment