例如 :
如果我有这样的datetime变量:
@shift_start_time = 2015-11-01 08:00:00.000 @increase = 30
如何得到结果:
2015-11-01 08:30:00.000
DATEADD
SELECT DATEADD(mi,@increase,@shift_start_time);
LiveDemo