JB
Size: a a a
JB
ls
A
ls
EK
DELIMITER $$
CREATE OR REPLACE DEFINER=`rtu`@`localhost` FUNCTION `get_ips_list`(customer_product_id int(11)) RETURNS varchar(10000) CHARSET utf8
DETERMINISTIC
BEGIN
DECLARE v_src_address_list varchar(10000) DEFAULT "";
select GROUP_CONCAT(`customer_product_id` SEPARATOR ',') from `mvts_gateway` where `customer_product_id` = 6006 into v_src_address_list;
return v_src_address_list;
END $$
EK
MariaDB [rtu]> select get_ips_list(6006)\G;
*************************** 1. row ***************************
get_ips_list(6006): 6006,6006,6006,6006,6006.....6006
1 row in set (0.001 sec)
EK
EK
EK
EK