DELIMITER $$
DROP PROCEDURE IF EXISTS `my_table`.`online_list` $$
CREATE PROCEDURE `my_table`.`online_list` (in timestamp int, in timeout int, in online1 varchar, in online2 varchar, out sonuc varchar)
BEGIN
insert into online (timestamp, ip, file) values(timestamp, online1, online2);
delete from online where timestamp < timeout;
set sonuc =(select DISTINCT ip from online);
END $$
DELIMITER ;
bu kodda verdiği hata fakat bir türlü hatayı bulamadım
Alıntı
Script line: 4 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' in online2 varchar, out sonuc varchar)
BEGIN
insert into online (time' at line 1