鐒跺悗鏌ヨ鍙栬〃涓殑鍊肩綏錛屾病鏈夌殑璇濆啀鐢熸垚涓涓潵鏌?
鎵ц榪欏彞SQL璇彞灝辮浜?jiǎn)锛寴q斿洖闅忔満鍙栧緱鐨勪竴鏉¤褰?
select top 1 * from member order by newid()
闅忔満鍙栦竴涓暟鐒跺悗鎶婅繖涓暟浣滀負(fù)ID鏉ュ彇鏁版嵁
姣斿MAXCOUNT鏄墍鏈夌殑鏁版嵁鏉℃暟
閭d箞鍙互getid=Int((MAXCOUNT - 1 + 1) * Rnd + 1) 鏉ョ敓鎴愪粠1鍒癕AXCOUNT鐨勪竴涓殢鏈烘暟銆?
鐒跺悗鐢⊿QL璇彞"select * from member where menid=" &getid
灝卞彲浠ヤ簡(jiǎn)
闅忔満鎻愬彇10鏉¤褰曠殑渚嬪瓙錛?
Sql server錛?
select top 10 * from 琛?order by newid()
Access錛?
Select top 10 * FROM 琛?orDER BY Rnd(id)
Rnd(id) 鍏朵腑鐨刬d鏄嚜鍔ㄧ紪鍙峰瓧孌碉紝鍙互鍒╃敤鍏朵粬浠諱綍鏁板兼潵瀹屾垚
姣斿鐢ㄥ鍚嶅瓧孌?UserName)
Select top 10 * FROM 琛?orDER BY Rnd(len(UserName))
]]>mysql瀹夎鏃朵駭鐢焎annot create windows service for mysql.error:0鐨勮В鍐蟲柟娉?/title>http://www.aygfsteel.com/hoocoral/articles/154159.html鑳℃槅鑽?/dc:creator>鑳℃槅鑽?/author>Fri, 19 Oct 2007 04:38:00 GMThttp://www.aygfsteel.com/hoocoral/articles/154159.htmlhttp://www.aygfsteel.com/hoocoral/comments/154159.htmlhttp://www.aygfsteel.com/hoocoral/articles/154159.html#Feedback0http://www.aygfsteel.com/hoocoral/comments/commentRss/154159.htmlhttp://www.aygfsteel.com/hoocoral/services/trackbacks/154159.html 瀹夎mysql鏃跺彲鑳戒駭鐢焎annot create windows service for mysql.error:0閿欒,閿欒鐨勫師鍥犲鏁扮敱浜庨噸鏂板畨瑁卪ysql鎴栬呭mydql鍗囩駭,浣跨敤MySQL Configuration Wizard鑰屼駭鐢?