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 id from wedonet_keyword where title='主板故障'
update wedonet_keyword set mycount=mycount+1
select count(*) from [wedonet_video] where isdel=0 and ispass=1 and title like '%主板故障%'
select top 30 id,classid,preimg,title from [wedonet_video] where isdel=0 and ispass=1 and title like '%主板故障%'
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