ITeye博客

让mysql快速兼容postgresql

JadeLuo · 2016-06-29 16:43 · mysql · mysql_postgresql · 数据库 · Markdown

CREATE DEFINER=`root`@`192.168.1.%` FUNCTION `to_char`(`date` datetime,`format` VARCHAR(20)) RETURNS date
BEGIN
	#Routine body goes here...

	RETURN  date_format(date, '%Y-%m-%d');
END

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。