Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/content/o/n/t/ontheplan23/html/andrewinfoservices/dynamicdemo/ex_complex_sp.php on line 6
Andrew Info Services - example 3 commands in a SP
example: a complex stored procedure

DELIMITER $$

DROP PROCEDURE IF EXISTS `sp_cleanup_trigger_ex` $$

CREATE PROCEDURE `sp_cleanup_trigger_ex`()
BEGIN
            INSERT INTO ex_tbl_trgr (SELECT * FROM ex_tbl_trgr_bkp);
            DELETE FROM ex_tbl_trgr_bkp;
            SELECT * FROM test.ex_tbl_trgr_bkp;
END $$

DELIMITER ;
demo