![]() | 1 cyrivlclth 2021-07-09 11:34:18 +08:00 六分钟过去了,你一个字段一个段的改,估计都执行完了 |
2 goxxoo 2021-07-09 11:40:17 +08:00 我想笑 真 Null 假 Null |
![]() | 3 potatowish 2021-07-09 11:42:00 +08:00 via iPhone 实习生? |
4 usw 2021-07-09 11:43:28 +08:00 导成 cvs 手动批量替换再导回去( |
![]() | 5 cz5424 2021-07-09 11:43:29 +08:00 ![]() 只能一个一个字段来,如果你字段太多随便写代码批量生产 sql update 字段=NULL where 字段='NULL' |
6 wangsipeng95 2021-07-09 11:44:38 +08:00 哈哈哈 搁这真假美猴王呢 |
![]() | 7 zakokun 2021-07-09 11:45:47 +08:00 ![]() 你把所有 allow null 的字段名拿出来,写个脚本,组装成 update table set a=null where (a == "null"); update table set b=null where (b == "null"); update table set c=null where (c == "null"); 就这样子咯 |
8 zhengfan2016 OP @cyrivlclth 有 50 多个表,每个表得有 10 到 20 个字段,一个一个打累死了 |
9 zhengfan2016 OP @potatowish 是的 |
10 iikebug 2021-07-09 11:51:57 +08:00 查表 查字段 ,直接生成 sql 也用不了 10 分钟吧 |
![]() | 11 lovelive1024 2021-07-09 12:00:06 +08:00 数据不多的话可以直接导出,批量替换‘null’为 null,然后再导入 |
12 lvgsnm 2021-07-09 12:39:40 +08:00 via iPhone ![]() update table set field = NUll where field is null |
![]() | 13 IGJacklove 2021-07-09 12:53:16 +08:00 via Android ![]() 写个脚本处理呗 |
![]() | 14 lllllliu 2021-07-09 14:13:42 +08:00 ![]() isnull 有函数, |
![]() | 15 lllllliu 2021-07-09 14:16:43 +08:00 ![]() select * from testa where isnull(col); |
![]() | 16 anzu 2021-07-09 14:35:03 +08:00 ![]() MySql 有查询所有表名所有字段的语句,写脚本一个循环完事。 |