JDBC query to Oracle

Posted by Harish on Stack Overflow See other posts from Stack Overflow or by Harish
Published on 2010-04-05T18:02:00Z Indexed on 2010/04/05 18:03 UTC
Read the original article Hit count: 378

Filed under:
|
|

Hi, We are planning to migrate our DB to Oracle.We need to manually check each of the embedded SQL is working in Oracle as few may follow different SQL rules.Now my need is very simple.

I need to browse through a file which may contain queries like this.

String sql = "select * from test where name="+test+"and age="+age;

There are nearly 1000 files and each file has different kind of queries like this where I have to pluck the query alone which I have done through an unix script.But I need to convert these Java based queries to Oracle compatible queries.

ie. select * from test where name="name" and age="age"

Basically I need to check the syntax of the queries by this.I have seen something like this in TOAD but I have more than 1000 files and can't manually change each one.Is there a way?

I will explain more i the question is not clear

© Stack Overflow or respective owner

Related posts about Oracle

Related posts about jdbc