Ich kann eine gespeicherte Prozedur in CodeIgniter nicht aufrufen. Wenn ich die Prozedur direkt in MySQL aufruft, funktioniert es. Warum funktioniert es nicht, wenn ich es in CodeIgniter anrufe?Wie Sie eine gespeicherte Prozedur in CodeIgniter aufrufen?
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