JScrollPanel 的问题!

2025-12-24 10:51:32
推荐回答(1个)
回答1:

动态sql文啊,sql文别写死,比如
select * from table1 where id > ? and id < ?
然后判断textfield的输入情况,如果输入了一个,那么sql就是
select * from table1 where id > n1
如果输入了两个,sql就是
select * from table1 where id > n1 and id < n2