2025-11-05 06:57:19分类:IT科技阅读(4) 
复制select str_to_date(02/25/1998 12:00:34 AM,使用数把
%m/%d/%y %h:%i:%s %s) as column_name from table_name; str_to_date(08/09/2008, %m/%d/%Y); -- 2008-08-09 str_to_date(08/09/08 , %m/%d/%y); -- 2008-08-09 str_to_date(08.09.2008, %m.%d.%Y); -- 2008-08-09 str_to_date(08:09:30, %h:%i:%s); -- 08:09:30 str_to_date(08.09.2008 08:09:30, %m.%d.%Y %h:%i:%s); -- 2008-08-09 08:09:30 1.2.3.4.5.6.7.8.9.10.11.12.