這段代碼給了我最後的700條記錄,而不是700條隨機記錄。如何從訪問表中選擇700條隨機記錄?
private string strsqlcommandBeta = " select top 700 LEFT(patronvalue17, INSTR(30, patronvalue17, ' ') -1) as patronvalue1, Rnd([objectid]) AS Ran from objectaer " +
" order by objectdate desc" +
" ";
訪問,而不是sql server –
@JoelCoehoorntouché。我已經更新了它。 – Daryl
現在我已經upvoted它;) –