[英]SQL query doesn't not work in SQL Server Compact Edition
如何在SQL Server中使用insert into ... where ( .. )
?
這個查詢:
insert into table(field) values(@val)
where not exists (select field from table where field = @code);
回報
解析查詢時出錯。 [令牌行號= 1,令牌行偏移= 40,令牌錯誤=其中]
我怎么解決這個問題? 提前致謝
我很確定您的問題是“ NOT EXISTS”,因為SQL CE不支持。 以下是一個可能會有所幫助的類似問題的鏈接: SQL CE上的“如果不存在”失敗
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.