Tôi không thể gọi thủ tục được lưu trữ trong CodeIgniter. Tuy nhiên, khi tôi gọi thủ tục trực tiếp trong MySQL, nó hoạt động. Tại sao nó không hoạt động khi tôi gọi nó trong CodeIgniter?Làm thế nào để gọi một thủ tục được lưu trữ trong CodeIgniter?
CREATE DEFINER=`root`@`localhost` PROCEDURE `test_proc`()
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''
BEGIN
declare name1 TEXT;
declare id1 TEXT;
select name,id into name1,id1 from my_tbl WHERE name='sam';
select * from my_tbl;
select name1,id1;
END