sqlserver 中,datetime2类型在查询时直接转换为字符串 select updated_at,CONVERT(VARCHAR(24),updated_at,120) as up_time from 表名; 结果