sqlserver 存储过程内 使用游标不能进行排序
DECLARE cursor_1 CURSOR FOR (select a,b from c order by a)报错
原因是 for后面接了()去掉括号就不报错了
DECLARE cursor_1 CURSOR FOR select a,b from c order by a
sqlserver 存储过程内 使用游标不能进行排序
DECLARE cursor_1 CURSOR FOR (select a,b from c order by a)报错
原因是 for后面接了()去掉括号就不报错了
DECLARE cursor_1 CURSOR FOR select a,b from c order by a