SQL杂谈

1、如何用convert什么的把带有时分秒的日期转为时分秒都0的日期?
select convert(varchar(10),getdate(),120)+' 00:00:00' 

2、禁用所有触发器
exec sp_MSforeachtable 'ALTER TABLE ? DisABLE TRIGGER ALL'

猜你喜欢

转载自new-fighter.iteye.com/blog/1748182