CONVERT(varchar(19),GETDATE(),120) CONVERT(varchar(19),字段名,120) -- YYYY-MM-dd HH:mm:ss
其他见:
https://blog.csdn.net/tangdasa/article/details/106547498