select * from user3 where name='"+name+"' and password='"+pwd+"'
里name 和password填什么才能变成
select * from user3 where name='any_value' and password='’;DROP TABLE user3
写出了的;DROP TABLE user3‘’ Eclipse一直报错
你的双引号没对上
String sql ="select * from user3 where name='"+name+"' and password='"+pwd+"'" ;
@"select * from user3 where name='"+name+" ' "+" and password='"+pwd+"'";