开发者

Token line number = 1,Token line offset = 56,Token in error = select

I'm getting following error while retrieving value from S开发者_如何转开发QL Server Ce:

Token line number = 1,Token line offset = 56,Token in error = select

Where my query is:-

select columnName 
from TableName 
where PrimaryKey=(select max (PrimaryKey) from TableName);

Please suggest to me the possible errors.


The database might not support that type of subquery. Try it without a subquery:

select top 1 columnName 
from TableName
order by PrimaryKey desc
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜