Guest User

Untitled

a guest
Jul 16th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. CREATE TABLE foo ( a int NOT NULL );
  2. INSERT INTO foo VALUES (NULL), (NULL);
  3.  
  4. SELECT * FROM foo;
  5. +---+
  6. | a |
  7. +---+
  8. | 0 |
  9. | 0 |
  10. +---+
  11. 2 rows in set (0.00 sec)
  12.  
  13. SET sql_mode='STRICT_ALL_TABLES';
  14. INSERT INTO foo VALUES (5), (NULL);
Add Comment
Please, Sign In to add comment