MS-SQL:Select TOP 1 * From Table Where 條件 ORDER BY NEWID()
Access:Select TOP 1 * From Table Where 條件 ORDER BY RND(數字欄位名稱)
MySQL:Select * From Table Where 條件 ORDER BY RAND() LIMIT 1
PostgreSQL:Select * From Table Where 條件 ORDER BY RANDOM() LIMIT 1
全站熱搜
留言列表