【发布时间】:2013-10-16 09:23:59
【问题描述】:
我在 SQL Server 2008 中有以下 SQL 查询
Select * from
(Select T.Col1, T.Col2
from openquery('server','select * from table 1 where date= '+ @StartDate +') R
其中@StartDate 是一个参数。我收到一个错误,提示 '+' 附近的语法不正确,需要 ')'
【问题讨论】:
标签: sql sql-server-2008 concatenation