Converting Dynamic SQL Query to a Prepared statement in Java
I'm wanting to write a program that converts a SQL Dynamic Query into a prepared statement in Java.
So if given a string like "SELECT * FROM EMPLOYEE_TABLE WHERE FIRST_NAME='开发者_开发知识库BOB';"
I'd like to convert that to a java prepared statement using code.
Are there any existing tools to do this and if not, can you provide any information on creating such a tool?
Thanks!
See JDBC Particularly the section on prepared statements.
I would not use any of the mapping technologies till you have some understanding of JDBC.
精彩评论