2013年8月22日

判断日期段是否交叉

摘要: CREATE FUNCTION dbo.f_SKX_IsDataCross ( @fromDate DATETIME , @toDate DATETIME , @startDate DATETIME , @endDate DATETIME ) RETURNS INT AS BEGIN DECLARE @ret INT IF ( DATEDIFF(DAY, @fromDate, @endDate) >= 0 AND DATEDIFF(DAY, @endDate, @toDate) >= 0... 阅读全文

posted @ 2013-08-22 17:41 数据结构X 阅读(332) 评论(0) 推荐(0) 编辑

导航