I want to know how to insert data into a table through JSP when u have the table name as a variable...Pls help me out.
Statement stmt5=con.createStatement(); String qry5="insert into t1(id) values('"+dat0+"')"; int u5=stmt5.executeUpdate(qry5);
I know this stuff. Wat I want to know is how do we do it if I had some String tname="t1". I want to use the insert command using tname and not t1.
Ive tried this:
insert into '"+tname+"' values(____); But ti dint work...Plz plz help me out....