SQL Compact select top 1

前端 未结 5 1526
不知归路
不知归路 2021-02-19 12:56

While porting an application from SQL 2005 to SQL Server Compact Edition, I found that I need to port this command:

SELECT TOP 1 Id FROM tblJob WHERE Holder_Id I         


        
5条回答
  •  萌比男神i
    2021-02-19 13:41

    Looks like it can't be done in compact. You have to read all the jobs, or make a SqlReader, and just read the first one.

提交回复
热议问题