select * from tb where 日期字段 between '起始日期' and '截止日期'
select * from tb where 日期字段 between '起始日期' and '截止日期' and XM = '????'
select * from tb where 日期字段 >= '起始日期' and 日期字段 <= '截止日期'
select * from tb where 日期字段 >= '起始日期' and 日期字段 <= '截止日期' and XM = '????'
好像是“between and” ,要和“ where XM="????" ”这样的条件组合起来,“between and”是不是要用“()”扩起来???
[/Quote]
select * from tb where 日期字段 between '起始日期' and '截止日期'
select * from tb where 日期字段 between '起始日期' and '截止日期' and XM = '????'
select * from tb where 日期字段 >= '起始日期' and 日期字段 <= '截止日期'
select * from tb where 日期字段 >= '起始日期' and 日期字段 <= '截止日期' and XM = '????'