语句为
ALTER TABLE dbo.YourTable
ADD CONSTRAINT DF_TimeDefault DEFAULT '00:00:00' FOR YourTimeColumn

比如
设计表的时候填写默认值的格式为
('00:00:00')

编辑列的时候格式为
00:00:00

参考
http://stackoverflow.com/questions/4780435/add-default-value-for-time7-field

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-02-21
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2022-02-17
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-08-30
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案