JDBC Bind table in prepared statement

Posted by AEIOU on Stack Overflow See other posts from Stack Overflow or by AEIOU
Published on 2010-04-09T02:44:54Z Indexed on 2010/04/09 2:53 UTC
Read the original article Hit count: 315

Filed under:
|
|
|

Can I bind a table name in a Java Prepared Statement?

i.e. PreparedStatement pstmt = aConn.prepareStatement("SELECT column FROM ? "); pstmt.setString(1, "MY_TABLE");

Nope, no I can't. New question, anyone know how to delete a question?

© Stack Overflow or respective owner

Related posts about jdbc

Related posts about java