select * from table_name where jxlx='03003' and to_char(JCSJ,'yyyy-mm-dd') between '2007-09-01' and '2007-09-20'
注意:日期格式要正確,不要把2007-09-01寫成2007-9-1了!!!
select * from table_name where jxlx='03003' and to_char(JCSJ,'yyyy-mm-dd') between '2007-09-01' and '2007-09-20'
注意:日期格式要正確,不要把2007-09-01寫成2007-9-1了!!!