格式化例子
 
写了个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 ;