select getdate()
---当前时间:2015-12-18 10:20:24.097
-------------------建立测试表
Create Table #Test
(
  ID INT ,
  DATE datetime
)

  insert into #Test select 1,SUBSTRING(convert(varchar,dateadd(dd,-day(getdate()),getdate()),120),1,10)

输出结果: select * from #Test

2015-11-30 00:00:00.000

 

相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-10-31
  • 2021-10-08
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案