如何做一个firebird SP,SELECT * FROM“TABLE”?
我正在从 SQL Server 迁移到 Firebird。
在 SQL Server 中,
CREATE PROCEDURE Departments_GetAll
AS
SELECT * FROM Departments
我在 Firebird 中尝试,
CREATE PROCEDURE DEPARTMENTS_DELETEALL
AS
BEGIN
SELECT * FROM "Departments";
END^
SET TERM ; ^
但这不起作用。
它返回错误“SQL 代码 -104”
I'm migrating from SQL Server to Firebird.
In SQL Server
CREATE PROCEDURE Departments_GetAll
AS
SELECT * FROM Departments
I try in Firebird
CREATE PROCEDURE DEPARTMENTS_DELETEALL
AS
BEGIN
SELECT * FROM "Departments";
END^
SET TERM ; ^
But that doesn't work.
It returns an error "SQL Code -104"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
存储过程需要返回参数和挂起命令才能返回多行。
A stored procedure needs return parameters and the
suspend
command in order to return multiple rows.