Created
October 1, 2019 10:42
-
-
Save krez69/8a9531811d71f94406a23718310408cc to your computer and use it in GitHub Desktop.
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
mysql> show tables; | |
+-------------------------+ | |
| Tables_in_wild_db_quest | | |
+-------------------------+ | |
| school | | |
| wizard | | |
+-------------------------+ | |
2 rows in set (0.00 sec) | |
mysql> DESCRIBE wizard; | |
+-------------+--------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+-------------+--------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| firstname | varchar(100) | NO | | NULL | | | |
| lastname | varchar(100) | NO | | NULL | | | |
| birthday | date | NO | | NULL | | | |
| birth_place | varchar(255) | YES | | NULL | | | |
| biography | text | YES | | NULL | | | |
| is_muggle | tinyint(1) | NO | | NULL | | | |
+-------------+--------------+------+-----+---------+----------------+ | |
7 rows in set (0.00 sec) | |
mysql> DESCRIBE school; | |
+----------+--------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+----------+--------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| name | varchar(100) | NO | | NULL | | | |
| capacity | int(11) | YES | | NULL | | | |
| country | varchar(255) | NO | | NULL | | | |
+----------+--------------+------+-----+---------+----------------+ | |
4 rows in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment