Hi all,
I was trying to pass a table name in the query dynamically like
query = "select * from ?";
PreparedStatement pstmt = connection.prepareStatement(query);
pstmt.setString(1,"table1");
It Throws an Exception
"Exception in thread "main" com.sybase.jdbc3.jdbc.SybSQLException: ASA Error -141: Table '@p0' not found" Is there a way to pass the table name dynamically?
Thanks in Advance