mysql str_to_date 字符串轉換爲日期

1.mysql日期和字符相互轉換方法 date_format(date,’%Y-%m-%d’) ————–>oracle中的to_char(); str_to_date(date,’%Y-%m-%d’) ————–>oracle中的to_date();mysql %Y:表明4位的年份 %y:表明2爲的年份web %m:表明月, 格式爲(01……12) %c:表明月, 格式爲(1……12)sql %
相關文章
相關標籤/搜索