在此问题中,我的Sql查询是(我想传递模式):
从中选择S.id? .status S内部联接? .cases C ON S.id = C.id,其中C.castId = _castid AND S.status ='new';
然后我添加了设置字符串:
preparedStatement.setString(1,schema);
preparedStatement.setString(2,schema);
preparedStatement.executeUpdate();
得到错误:线程“ main”中的异常org.postgresql.util.PSQLException:列索引超出范围:1,列数:0。
有人可以帮我解决我做错的地方吗?
预先感谢