mysql日期和字符相互转换方法 1.mysql日期和字符相互转换方法 date_format(date,’%Y-%m-%d’) ————–>oracle中的to_char(); str_to_date(date,’%Y-%m-%d’) ————–>oracle中的to_date(); %Y:代表4位的年份 %y:代表2为的年份 % 2025-11-19 1 0