我在页面的文本框里获得一个日期(日期是可变的点左边箭头就往前一天,点后面箭头就往后一天),在sqlmap中怎么写sql语句查询出来的数据是跟随这个文本框里的日期而查询的呢
select *
from st_clinic_dm a where 1=1 and substr(a.op_date, 0, 7) =
to_char(add_months(sysdate, -1), 'yyyy-mm')
group by substr(a.op_date, 0, 7), a.hospital_id) m
select *
from st_clinic_dm a where 1=1 and substr(a.op_date, 0, 7) =
to_char(add_months(sysdate, -1), 'yyyy-mm')
group by substr(a.op_date, 0, 7), a.hospital_id) m
先获取文本框里的值,然后,写在日期里就行啊。
v_date=控件名.属性名
where 1=1
and substr(a.op_date, 0, 7) = v_date;
如果v_date的格式不一样,可以变化一下。
就是在页面中写个js函数用onclick点击出发事件就好了