022-83718162 / 83715667 chinadse@126.com
update wedonet_user set user_atime=GetDate() where id=0
update wedonet_user set isonline=0 where isonline=1 and datediff(n,user_atime,GetDate())>20
select count(*) from [wedonet_video] where cid=8 and isdel=0 and ispass=1 and classid in (771)
select top 20 id,classid,preimg,title from [wedonet_video] where cid=8 and isdel=0 and ispass=1 and classid in (771) order by istop desc,cls asc,id desc
select top 4 id,classid,preimg,title from [wedonet_video] where isdel=0 and ispass=1 and cid=8 and classid<>-2 and isgood=1 order by istop desc,cls asc,id desc
select top 5 id,classid,title from [wedonet_video] where isdel=0 and ispass=1 and cid=8 and classid<>-2 order by istop desc,cls asc,id desc
select top 8 id,classid,title from [wedonet_doc] where isdel=0 and ispass=1 and cid=4 and classid<>-2 and isgood=1 order by istop desc,cls asc,id desc
select top 10 id,title from [wedonet_keyword] order by mycount desc