如何将datetime格式的数据近似到15分钟smalldatetime 是近似到分,但我需要近似到每15分,比如0分,15分,30分,45分。如何处理? [解决办法]select cast(datepart(mi,getdate())/15 as int)*15