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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -