日期:
select value it form XXXEntities.Table1 as it where It.CreateTime >= datetime'2017-1-1 0:0:01' and It.CreateTime <= '2017-1-3 23:59:59'
枚举:
select value it form XXXEntities.Table1 as it where It.Stauts in {1,2,3}
select value it form XXXEntities.Table1 as it where It.Stauts in {'a','b','c'}
记录备忘
本文介绍了使用SQL进行日期范围筛选及状态枚举查询的方法。通过具体示例展示了如何高效地从数据库中选取特定时间段内的记录,以及如何根据多个预设状态进行数据过滤。
256

被折叠的 条评论
为什么被折叠?



