MySQL 上的 Firebird EXECUTE BLOCK
Firebird EXECUTE BLOCK on MySQL
如何使用 Firebird 在 MySQL 上执行块 语句?
execute block
as
declare i int = 0;
begin
while (i < 128) do
begin
insert into AsciiTable values (:i, ascii_char(:i));
i = i + 1;
end
end
您的意思是 Firebird execute block
MySQL
中的类似内容;如果是,则将您发布的代码包装在 stored procedure
中,如下所示,它将完成工作
create procedure usp_test
as
begin
declare i int = 0;
while (i < 128) do
begin
insert into AsciiTable values (:i, ascii_char(:i));
i = i + 1;
end
end
如何使用 Firebird 在 MySQL 上执行块 语句?
execute block
as
declare i int = 0;
begin
while (i < 128) do
begin
insert into AsciiTable values (:i, ascii_char(:i));
i = i + 1;
end
end
您的意思是 Firebird execute block
MySQL
中的类似内容;如果是,则将您发布的代码包装在 stored procedure
中,如下所示,它将完成工作
create procedure usp_test
as
begin
declare i int = 0;
while (i < 128) do
begin
insert into AsciiTable values (:i, ascii_char(:i));
i = i + 1;
end
end