Hi dmay chug
In the preparedstatement table name should be vary
Can you try like this ??
First pass the query in the
string and pass the table in the another string like this
String varytable=get from the object like from
jsp,
servlet or
ejb String sql="select * from '"+varytable +"'";
PreparedStatement pst =con.preparedStatement(sql,1004,1007);
ResultSet rs = pst.executeQuery();
Check and tell your feed back regarding this.
Rgs
k.krishnamoorthy