


就是–rs=stmt.executeQuery(“select * from tb_money where id=(select id from” +
” tb_money where accounts=””+outAccounts+””and password=””+outPassword+””)”);–
这个语句执行不了,本人想根据输入的用户和用户密码找到这个数据的ID 然后获取全部信息 可是却执行不了
假如把ID=“。”后面的select语句去掉直接写一个ID号就可以 这是原因是什么啊 是本人的sql语句错了吗
谢谢了!
解决方案
40
你试试把这个拼接的字符串 放到一个变量里,然后println打印出来看看,然后放到数据库执行一下,看报的什么错误