Created
October 11, 2012 20:01
-
-
Save petelacey/3875130 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> create table bar ( c1 int not null ); | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> select table_name, engine from information_schema.tables where table_schema = 'spyder_development' and table_name = 'bar'; | |
+------------+--------+ | |
| table_name | engine | | |
+------------+--------+ | |
| bar | InnoDB | | |
+------------+--------+ | |
1 row in set (0.00 sec) | |
mysql> describe bar; | |
+-------+---------+------+-----+---------+-------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+-------+---------+------+-----+---------+-------+ | |
| c1 | int(11) | NO | | NULL | | | |
+-------+---------+------+-----+---------+-------+ | |
1 row in set (0.00 sec) | |
mysql> INSERT INTO bar VALUES (); | |
Query OK, 1 row affected, 1 warning (0.00 sec) | |
mysql> select * from bar; | |
+----+ | |
| c1 | | |
+----+ | |
| 0 | | |
+----+ | |
1 row in set (0.00 sec) | |
mysql> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment