av网站免费线看精品_国产做a爱视频免费不_深爱激情网开心五月天_伊人五月天在线视频网

 
UCenter HOME 數(shù)據(jù)調(diào)用小技巧
發(fā)布時(shí)間:2008-06-24   瀏覽次數(shù):1198470
UCenter HOME 數(shù)據(jù)調(diào)用小技巧 UCenter HOME發(fā)布以來(lái)收到廣大站長(zhǎng)和SNS愛好者的歡迎,在發(fā)布不到2個(gè)月的時(shí)間內(nèi)已經(jīng)有超過(guò)15000家網(wǎng)站采用了UCenter HOME。但是,很多用戶在使用UCenter HOME 數(shù)據(jù)調(diào)用,把自己想要的內(nèi)容按自己的要求顯示出來(lái)方面存在問(wèn)題,不太會(huì)寫數(shù)據(jù)調(diào)用SQL語(yǔ)句,所以下面為大家簡(jiǎn)單列出幾個(gè)平時(shí)常用到的數(shù)據(jù)調(diào)用SQL語(yǔ)句。1、 調(diào)用含有圖片的日志代碼:SELECT * FROM `uchome_blog` WHERE `picflag` =1;2、 調(diào)用最近更新的10條日志代碼:SELECT * FROM uchome_blog FORCE INDEX(dateline) ORDER BY dateline DESC LIMIT 0,10;3、 調(diào)用最近更新的10個(gè)相冊(cè)代碼:SELECT * FROM uchome_album FORCE INDEX(updatetime) ORDER BY dateline DESC LIMIT 0,10;4、 調(diào)用最近的10條播客代碼:SELECT * FROM uchome_doing FORCE INDEX(dateline) ORDER BY dateline DESC LIMIT 0,10;5、 調(diào)用我的話題代碼:SELECT * FROM uchome_thread ORDER BY dateline DESC LIMIT 0,10;6、 調(diào)用3天內(nèi)回復(fù)數(shù)最多的日志代碼:SELECT * FROM uchome_blog WHERE dateline>UNIX_TIMESTAMP()-86400*3 ORDER BY replynum DESC;7、 調(diào)用選吧一周內(nèi)的熱點(diǎn)話題代碼:select * FROM uchome_thread where dateline>=UNIX_TIMESTAMP()-604800 ORDER BY viewnum DESC;
立即預(yù)約