Skip to content

Instantly share code, notes, and snippets.

@petelacey
Created October 11, 2012 20:01
Show Gist options
  • Save petelacey/3875130 to your computer and use it in GitHub Desktop.
Save petelacey/3875130 to your computer and use it in GitHub Desktop.
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