Select TOP N not working in MS Access with parameter

后端 未结 1 1257
青春惊慌失措
青春惊慌失措 2020-12-21 15:35

In SQL Server, we use this sQL for set rowcount:

SET ROWCOUNT @top

or

select top (@top) * from Table 
         


        
相关标签:
1条回答
  • 2020-12-21 16:27

    Access does not support using a parameter for SELECT TOP. You must write a literal value into the text of the SQL statement.

    0 讨论(0)
提交回复
热议问题