Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Welcome to the MySQL monitor. Commands end with ; or g.
  2. Your MySQL connection id is 376
  3. Server version: 5.7.14 Homebrew
  4.  
  5. Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  6.  
  7. Oracle is a registered trademark of Oracle Corporation and/or its
  8. affiliates. Other names may be trademarks of their respective
  9. owners.
  10.  
  11. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
  12.  
  13. mysql> SELECT STR_TO_DATE('9','%m');
  14. +-----------------------+
  15. | STR_TO_DATE('9','%m') |
  16. +-----------------------+
  17. | NULL |
  18. +-----------------------+
  19. 1 row in set, 1 warning (0.00 sec)
  20.  
  21. mysql> show warnings;
  22. +---------+------+--------------------------------------------------------+
  23. | Level | Code | Message |
  24. +---------+------+--------------------------------------------------------+
  25. | Warning | 1411 | Incorrect datetime value: '9' for function str_to_date |
  26. +---------+------+--------------------------------------------------------+
  27. 1 row in set (0.00 sec)
  28.  
  29. mysql> SELECT STR_TO_DATE('9','%m');
  30. -> '0000-09-00'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement