在myeclipse中写sql语句的格式

来源:百度知道 编辑:UC知道 时间:2024/06/18 07:07:43
在myeclipse中,<input type=text name=number>
现在,想让执行sql查询语句,在表outwarehouse中查询所有,条件为:输入的名为number的text类型的文本,between outwarehouse.startno and outwarehouse.endno
请问具体的代码应该怎样写?谢谢

没太看明白,如果只是单一的条件,你可以写"select * from outwarehouse where id(对应text里数据)='" + str(从text里取过来的字符串) + "'";
如果我理解错了,那你再说详细点