动态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