sql - Firebird EXECUTE BLOCK on MySQL -


how use firebird execute block statement on mysql?

execute block declare int = 0; begin   while (i < 128)   begin     insert asciitable values (:i, ascii_char(:i));     = + 1;   end end 

you meant firebird execute block similar thing in mysql; if yes wrap posted code inside stored procedure below work

create procedure usp_test begin declare int = 0;   while (i < 128)   begin     insert asciitable values (:i, ascii_char(:i));     = + 1;   end end 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -