I\'m trying to use prepared statements to set a table name to select data from, but I keep getting an error when I execute the query.
The error and sample code is di
String table="pass"; String st="select * from " + table + " "; PreparedStatement ps=con.prepareStatement(st); ResultSet rs = ps.executeQuery();