开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜