【发布时间】:2012-06-01 13:51:09
【问题描述】:
我正在尝试编写一个执行 select 语句的简单存储过程,但它一直给我一个语法错误,而没有任何其他帮助告诉我错误是什么
create procedure _this_is_it(this CHAR(3), that CHAR(4), other CHAR(3))
foreach select * from table
where column1 = this and
column2 = that and
column3 = other
end foreach
end procedure;
我应该得到语法错误的任何原因?
【问题讨论】:
-
尝试将
foreach更改为for -
同样处理语法错误
标签: sql stored-procedures informix