Created
April 12, 2011 18:44
-
-
Save wesmaldonado/916114 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> 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