|
TomatoCLIJul 9, 2021
1
六分钟过去了,你一个字段一个字段的改,估计都执行完了
|
|
goxxooJul 9, 2021
2
我想笑 😂 真 Null 假 Null
|
|
potatowishJul 9, 2021 via iPhone
3
实习生?
|
|
uswJul 9, 2021
4
导成 cvs 手动批量替换再导回去(🤭
|
|
5
只能一个一个字段来,如果你字段太多随便写代码批量生产 sql
update 字段=NULL where 字段='NULL' |
|
wangsipeng95Jul 9, 2021
6
哈哈哈 搁这真假美猴王呢😂
|
|
7
你把所有 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
@cyrivlclth 有 50 多个表,每个表得有 10 到 20 个字段,一个一个打累死了
|
|
9
@potatowish 是的😂
|
|
iikebugJul 9, 2021
10
查表 查字段 ,直接生成 sql 也用不了 10 分钟吧
|
|
lovelive1024Jul 9, 2021
11
数据不多的话可以直接导出,批量替换‘null’为 null,然后再导入
|
|
12
update table set field = NUll where field is null
|
|
13
写个脚本处理呗
|
|
14
isnull 有函数,
|
|
15
select * from testa where isnull(col);
|
|
16
MySql 有查询所有表名所有字段的语句,写脚本一个循环完事。
|