摘要:
1.按 status 值 2 5 3 的顺序排序,值相同则按修改时间排序 order by FIELD(status,2,5,3),a.ModifyTime desc 2.将 status = 3 的记录排在最后,其余的记录按修改时间排序 order by FIELD(status,3),a.Mod 阅读全文
posted @ 2018-09-12 17:48
热敷哥
阅读(1670)
评论(0)
推荐(0)
摘要:
update table a, table b set a.filed1= b.field2, a.field2= b.field1where a.id = b.id 阅读全文
posted @ 2018-09-12 16:28
热敷哥
阅读(10985)
评论(3)
推荐(2)

浙公网安备 33010602011771号