SQLServer SQL语句格式化日期时间年月日时分秒,去掉毫秒

原文链接:https://blog.csdn.net/chinaplan/article/details/80469638

 

select substring( convert(varchar,getdate(),120),1,16)

结果:2018-05-27 15:23

posted @ 2024-08-15 14:19  yinghualeihenmei  阅读(2)  评论(0编辑  收藏  举报