如何在MySQL上使用Firebird 执行块语句?
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
答案 0 :(得分:0)
你在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