Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to the MySQL monitor. Commands end with ; or g.
- Your MySQL connection id is 376
- Server version: 5.7.14 Homebrew
- Copyright (c) 2000, 2016, 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> SELECT STR_TO_DATE('9','%m');
- +-----------------------+
- | STR_TO_DATE('9','%m') |
- +-----------------------+
- | NULL |
- +-----------------------+
- 1 row in set, 1 warning (0.00 sec)
- mysql> show warnings;
- +---------+------+--------------------------------------------------------+
- | Level | Code | Message |
- +---------+------+--------------------------------------------------------+
- | Warning | 1411 | Incorrect datetime value: '9' for function str_to_date |
- +---------+------+--------------------------------------------------------+
- 1 row in set (0.00 sec)
- mysql> SELECT STR_TO_DATE('9','%m');
- -> '0000-09-00'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement