从日期时间中删除时间 [英] Remove time from datetime

查看:180
本文介绍了从日期时间中删除时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我的数据库中有日期时间日期。



02-02- 2015 20:15:49



我想从所有记录中删除时间部分。



请告诉我如何做到这一点。

Hi all

I have date in my database with datetime.

02-02-2015 20:15:49

I want to remove the time part from all the records.

Please tell me the way to do that.

推荐答案

试试这个 -

Try this-
SELECT convert(varchar, columnName, 105)


这篇关于从日期时间中删除时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆