sqlserver怎么把当前日期字符串格式转换成日期格式
参考https://www.cnblogs.com/keepdoit/p/11769659.html
to_date(日期,'yyyy-mm-dd')
select to_date(to_char(sysdate,'YYYY-MM-dd'),'yyyy-mm-dd')from dual
convert(datetime,'2017-12-12 00:00:01', 20)--时分秒格式convert(datetime,'2017-12-12', 23)--yyyy-mm-dd 格式