Guest User

Untitled

a guest
Jul 16th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. INSERT INTO A (`id`) VALUES (NULL)
  2.  
  3. Column 'id' cannot be null
  4.  
  5. INSERT INTO A (`id`) values (0)
  6.  
  7. drop table if exists A;
  8. create table A
  9. (
  10. id int unsigned not null auto_increment primary key
  11. )
  12. engine=innodb;
  13.  
  14. insert into A (id) values (null),(null);
  15.  
  16. mysql> select * from A order by id;
  17. +----+
  18. | id |
  19. +----+
  20. | 1 |
  21. | 2 |
  22. +----+
  23. 2 rows in set (0.00 sec)
  24.  
  25. INSERT INTO `A` VALUES ()
Add Comment
Please, Sign In to add comment