Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Mon Jan 16 18:01:22 on ttys000
- ➜ ~ mysql -u root -p
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 120
- Server version: 5.7.17 MySQL Community Server (GPL)
- Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql> SHOW DATABASES;
- +--------------------+
- | Database |
- +--------------------+
- | information_schema |
- | mysql |
- | performance_schema |
- | sys |
- +--------------------+
- 4 rows in set (0.00 sec)
- CREATE\040DATABASE\040eleves;
- CREATE\040TABLE\040eleves
- id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,
- nom\040VARCHAR(30),
- prenom\040VARCHAR(30),
- age\040VARCHAR(3),
- residence\040VARCHAR(50),
- PRIMARY\040KEY(id);
- CREATE\040TABLE\040eleves\040id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,\040nom\040VARCHAR(30),\040prenom\040VARCHAR(30),\040age\040VARCHAR(3),\040residence\040VARCHAR(50),\040PRIMARY\040KEY(id);
- CREATE\040TABLE\040eleves\040(id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,\040nom\040VARCHAR(30),\040prenom\040VARCHAR(30),\040age\040VARCHAR(3),\040residence\040VARCHAR(50),\040PRIMARY\040KEY(id));
- INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Google",\040"Google",\040"100",\040"USA");
- INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Laurie",\040"Ingalse",\040"99",\040"USA");
- INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Jean",\040"Johan",\040"28",\040"Quimper");
- INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Sylvette",\040"Sylvaine",\040"28",\040"Yvelines");
- INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Cam",\040"Mouflage",\040"20",\040"Un\040trou");
- quit
- ➜ ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement