是全部列全部列全部列哦
解决方案
10
生成脚本并执行呗
mysql -e “select concat(“update “, table_schema, “.”, table_name, ” set “, column_name, ” = 0 where “, column_name, ” is null;”) from information_schema.columns where 条件;” > xx.sql
mysql < xx.sql
mysql -e “select concat(“update “, table_schema, “.”, table_name, ” set “, column_name, ” = 0 where “, column_name, ” is null;”) from information_schema.columns where 条件;” > xx.sql
mysql < xx.sql
10
按照楼上的方法 加个where条件 要不把系统表都给更新了