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 阅读全文
posted @ 2020-11-11 14:51 半夏、、、微凉 阅读(448) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-11-11 14:44 半夏、、、微凉 阅读(1486) 评论(0) 推荐(0)