Skip to content

Instantly share code, notes, and snippets.

@wesmaldonado
Created April 12, 2011 18:44
Show Gist options
  • Save wesmaldonado/916114 to your computer and use it in GitHub Desktop.
Save wesmaldonado/916114 to your computer and use it in GitHub Desktop.
mysql> use test;
Database changed
mysql> create table test_innodb engine=innodb;
ERROR 1113 (42000): A table must have at least 1 column
mysql> create table test_innodb (id int not null primary key) engine=innodb;
Query OK, 0 rows affected, 2 warnings (0.09 sec)
mysql> show create table test_innodb;
+-------------+-------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------------+-------------------------------------------------------------------------------------------------------------------+
| test_innodb | CREATE TABLE `test_innodb` (
`id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
+-------------+-------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> select version();
+------------+
| version() |
+------------+
| 5.1.55-log |
+------------+
1 row in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment