Home  >  Article  >  Database  >  mysql格式化例子_MySQL

mysql格式化例子_MySQL

WBOY
WBOYOriginal
2016-06-01 13:34:251189browse

bitsCN.com

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
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn