2016.5.10 随笔——SQL语句

 1 select * from user_extend where user_dbid >= 30001138 and user_dbid <= 30001137 + 10000 order by user_dbid;
 2 select * from account_info 
 3 select count(*) from account_info
 4 
 5 
 6 
 7 select * from user_extend a,
 8 (select user_dbid, sum(create_by) dzbl_id  from account_info group by user_dbid ) b
 9 where a.user_dbid = b.user_dbid and a.dzbl_id <> b.dzbl_id
10 
11 
12 update user_extend set dzbl_id = null where dzbl_id is not null;
13 delete from account_info where account_dbid <>495729307722223616 ;

 

转载于:https://www.cnblogs.com/zywhr/p/5479159.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值