asp.net, c# 查询某天所有数据sql语句 用于SQLServer(mssql)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cplvfx/article/details/82023266

方法1

select * from [article]
where Convert(varchar(10),[add_time],111) = '2017/04/22'

方法2

select * from [article]
where Convert(varchar(10),[add_time],120) = '2017-04-22'

猜你喜欢

转载自blog.csdn.net/cplvfx/article/details/82023266
今日推荐