T-SQL无法执行我的程序

时间:2017-07-10 08:01:48

标签: sql sql-server tsql

我的代码:

'Test01'

运行后得到的错误:

  

' Test01'。*

附近的语法不正确

我希望在proc testProc的帮助下将var groupBy = function(xs, key) { return xs.reduce(function(rv, x) { if(rv[x[key]] == undefined){ rv[x[key]] = {"weekcount": x[key], "grouped": []} } stripped = {} for(var k in x) if(k!=key) stripped[k]=x[k]; //strip "key" property rv[x[key]]["grouped"].push(stripped); return rv; }, []); }; 插入到我的表格测试中,但它不起作用。

1 个答案:

答案 0 :(得分:3)

您只需要省略括号。

EXEC testProc @string  = 'Test01';