from (select tid, sum(num) as sum from A order by tid)a,
(select tid, sum(num) as sum from B order by tid)b
where a.tid = b.tid
试一下上面的sql语句行不行
最简单的处理方法,写两个sql语句吧:1、update myTable set vipczz=vipczz+1 where vip=1
2、update myTable set vipczz=vipczz-1 where vip=0
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)