【发布时间】:2016-02-02 22:03:22
【问题描述】:
SELECT CAST(Count(1) as VARCHAR(30)) AS SourceRowCount
FROM table
where countryid= '" +@[User::Id] +"'"+ " "+"
AND locationid ="'+@[User::ID1]+'"
预期输出
SELECT CAST(Count(1) as VARCHAR(30)) AS SourceRowCount
FROM table
where countryid= 1
AND locationid =2
【问题讨论】:
-
我编辑了您的问题以格式化您的代码。现在你的实际问题是什么?
-
没有问过问题
-
嗨,我尝试了下面的表达式并得到了错误。请帮我 SELECT CAST(Count(1) as VARCHAR(30)) AS SourceRowCount FROM table where countryid= '" +@[User::Id] +"'"+ " "+" AND locationid ="'+@[用户::ID1]+'"