Advertisement
Guest User

Untitled

a guest
Nov 29th, 2012
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.58 KB | None | 0 0
  1. % mysql
  2. Welcome to the MySQL monitor.  Commands end with ; or \g.
  3. Your MySQL connection id is 4
  4. Server version: 5.5.28-log Source distribution
  5.  
  6. Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  7.  
  8. Oracle is a registered trademark of Oracle Corporation and/or its
  9. affiliates. Other names may be trademarks of their respective
  10. owners.
  11.  
  12. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  13.  
  14. mysql> use test
  15. Database changed
  16.  
  17. mysql> create table test(id int);
  18. Query OK, 0 rows affected (0.01 sec)
  19.  
  20. mysql> insert into test values ('blah');
  21. Query OK, 1 row affected, 1 warning (0.00 sec)
  22.  
  23. mysql> select * from test;
  24. +------+
  25. | id   |
  26. +------+
  27. |    0 |
  28. +------+
  29. 1 row in set (0.00 sec)
  30.  
  31. mysql> show create table test;
  32. +-------+----------------------------------------------------------------------------------------+
  33. | Table | Create Table                                                                           |
  34. +-------+----------------------------------------------------------------------------------------+
  35. | test  | CREATE TABLE `test` (
  36.   `id` int(11) DEFAULT NULL
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
  38. +-------+----------------------------------------------------------------------------------------+
  39. 1 row in set (0.00 sec)
  40.  
  41. mysql> create table test2 (id int) engine = 'MyISAM';
  42. Query OK, 0 rows affected (0.00 sec)
  43.  
  44. mysql> insert into test2 values ('blah');
  45. Query OK, 1 row affected, 1 warning (0.00 sec)
  46.  
  47. mysql> select * from test2;
  48. +------+
  49. | id   |
  50. +------+
  51. |    0 |
  52. +------+
  53. 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement