"select top 5 db_statesid
from seo_states
where db_statesid in (" +
"SELECT TOP 5 db_statesid
FROM (SELECT DISTINCT a.db_statesid
FROM seo_states a
where country_id=" + country_id + ")
ORDER BY RND(db_statesid))";
我正在使用此查詢進行訪問,它工作正常,但不適用於在Order by附近給出語法錯誤的sql。SQL查詢通過給出錯誤的順序
是'RND'在訪問一個圓形或隨機函數?什麼是您收到的*** FULL ***錯誤? – Kermit
關鍵字'ORDER'附近的語法錯誤。 –
隨機函數 –