mysql 时间与字符串相互转换(重中之重)-----------------------------------

mysql日期和字符相互转换方法

时间转字符串

date_format(date,'%Y-%m-%d')    -------------->oracle中的to_char();

字符串转时间

str_to_date(date,'%Y-%m-%d')     -------------->oracle中的to_date();
 

猜你喜欢

转载自blog.csdn.net/Richard_666/article/details/88299092