Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % mysql
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 4
- Server version: 5.5.28-log Source distribution
- Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql> use test
- Database changed
- mysql> create table test(id int);
- Query OK, 0 rows affected (0.01 sec)
- mysql> insert into test values ('blah');
- Query OK, 1 row affected, 1 warning (0.00 sec)
- mysql> select * from test;
- +------+
- | id |
- +------+
- | 0 |
- +------+
- 1 row in set (0.00 sec)
- mysql> show create table test;
- +-------+----------------------------------------------------------------------------------------+
- | Table | Create Table |
- +-------+----------------------------------------------------------------------------------------+
- | test | CREATE TABLE `test` (
- `id` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
- +-------+----------------------------------------------------------------------------------------+
- 1 row in set (0.00 sec)
- mysql> create table test2 (id int) engine = 'MyISAM';
- Query OK, 0 rows affected (0.00 sec)
- mysql> insert into test2 values ('blah');
- Query OK, 1 row affected, 1 warning (0.00 sec)
- mysql> select * from test2;
- +------+
- | id |
- +------+
- | 0 |
- +------+
- 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement