如此多的数据不能使用delete删除,请问基表数据总共有多少,建议使用如下两条命令。
create table t_table_new as select * from t_table where user.cn = temp.cn  and temp.bz<>0;
将需要的数据通过create创建出来,然后truncate原表,然后rename将原表另命名,将新表改名为原表。
注:要注意原表的约束条件、索引之类的不会通过create...as select创建,需手动创建。(谨记),建议晚上操作。
当然,若temp.bz<>0;不多的话,也可以Insert into t_table select * from t_table_new;