如何在SQL中将"Patient Expired on Mar-07-2018 6:33 AM“转换为2018-03-07?
发布于 2018-06-08 05:38:56
一个非常简单的方法:
select convert(date, replace(substring(str, 20, 11), '-', ' ')
from (values ('Patient Expired on Mar-07-2018 6:33 AM')) v(str)
https://stackoverflow.com/questions/50750489
复制相似问题