Home > Database > Mysql Tutorial > mysql格式化例子_MySQL

mysql格式化例子_MySQL

WBOY
Release: 2016-06-01 13:34:25
Original
1207 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template