Open hww123 opened 4 years ago
try
ALTER TABLE test.test1 MODIFY COLUMN field4 bigint(20) default ""
try
ALTER TABLE test.test1 MODIFY COLUMN field4 bigint(20) default ""
Follow your advice, but throw error 'Error : errCode = 2, detailMessage = Invalid number format: '
I have a case:
mysql> ALTER TABLE db1.tbl1 MODIFY COLUMN k1
VARCHAR(4096) NULL COMMENT "备注";
ERROR 1064 (HY000): errCode = 2, detailMessage = Can not change default value
mysql> ALTER TABLE db1.tbl1 MODIFY COLUMN k1
VARCHAR(4096) NULL default "" COMMENT "备注";
Query OK, 0 rows affected (12.19 sec)
doris version:12.8
case:
Alter Table Sql
when execute second alter sql throw this error Error : errCode = 2, detailMessage = Can not change default value