Created
April 2, 2013 14:08
-
-
Save yoku0825/5292481 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mysql56 | |
Welcome to the MySQL monitor. Commands end with ; or \g. | |
Your MySQL connection id is 3 | |
Server version: 5.6.10-log Source distribution | |
Copyright (c) 2000, 2013, 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. | |
mysql56> select @@sql_mode; | |
+------------------------+ | |
| @@sql_mode | | |
+------------------------+ | |
| NO_ENGINE_SUBSTITUTION | | |
+------------------------+ | |
1 row in set (0.00 sec) | |
mysql56> | |
mysql56> use d1 | |
Database changed | |
mysql56> create table t11 ( t blob default ''); | |
Query OK, 0 rows affected, 1 warning (0.36 sec) | |
mysql56> | |
mysql56> show warnings; | |
+---------+------+-------------------------------------------------+ | |
| Level | Code | Message | | |
+---------+------+-------------------------------------------------+ | |
| Warning | 1101 | BLOB/TEXT column 't' can't have a default value | | |
+---------+------+-------------------------------------------------+ | |
1 row in set (0.00 sec) | |
mysql56> | |
mysql56> set sql_mode = strict_trans_tables; | |
Query OK, 0 rows affected (0.00 sec) | |
mysql56> | |
mysql56> create table t12 ( t blob default ''); | |
ERROR 1101 (42000): BLOB/TEXT column 't' can't have a default value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment