在Java PreparedStatement中使用问号
我通过浏览器发送请求 但ibatis的分析是错误的在Java PreparedStatement中使用问号,java,ibatis,Java,Ibatis,我通过浏览器发送请求 但ibatis的分析是错误的 select CONCAT('http://localhost:8080/apps/icon/download/?app=', app_idx) from test where app_idx = ?; 我希望我的问题是 select CONCAT('http://localhost:8080/apps/icon/download/?app=', app_idx) from test where app_idx = **80
select
CONCAT('http://localhost:8080/apps/icon/download/?app=', app_idx)
from test
where app_idx = ?;
我希望我的问题是
select
CONCAT('http://localhost:8080/apps/icon/download/?app=', app_idx)
from test
where app_idx = **80**;
但真正的是http://localhost:8080/apps/icon/download/?app=80"
select
CONCAT('http://localhost:8080/apps/icon/download/80app=', app_idx)
from test
where app_idx = **?**;
有什么方法可以使它正确吗?使用
select CONCAT('?', app_idx)
from test
where app_idx = ?;
并通过
http://localhost:8080/apps/icon/download/?app=
作为第一个参数