SELECT OrderId, OrganizeId,StartTime, EndTime FROM Order WHERE (DATEDIFF(day, SysDateTime(), EndTime) <= 31) AND (DATEDIFF(day, SysDateTime(), EndTime) > 15)
查找与当天时间相比“大于15天而小于31天的数据”
SELECT OrderId, OrganizeId,StartTime, EndTime FROM Order WHERE (DATEDIFF(day, SysDateTime(), EndTime) <= 31) AND (DATEDIFF(day, SysDateTime(), EndTime) > 15)
查找与当天时间相比“大于15天而小于31天的数据”