11 2020 档案
摘要:查重: select no from table_name group by no having count(no)>1; 删除重复数据中id较大的数据: delete from table_name where no in (select no from table_name group by n
阅读全文
摘要:select @rownum:=@rownum+1 rownum, sys_organ.* from (select @rownum:=0) r, sys_organ order by sys_id desc; 更新某一字段等于所在行号: set @num = 0; update sys_organ
阅读全文

浙公网安备 33010602011771号