时间:2021-07-01 10:21:17 帮助过:70人阅读
mysql格式化例子
写了个mysql格式化例子
DELIMITER $$
DROP PROCEDURE IF EXISTS `testdb`.`test_p_getTimeRange`$$
CREATE DEFINER=`ipd`@`%` PROCEDURE `test_p_getTimeRange`(OUT o_timeRange TEXT)
BEGIN
SELECT GROUP_CONCAT(CONCAT(timeRange, '|', monday, '|', tuesday, '|', wednesday,
'|', thursday, '|', friday, '|', saturday, '|', sunday, '|', id) SEPARATOR '@') INTO o_timeRange
FROM test_time_range;
END$$
DELIMITER ;
bitsCN.com