I have a string that can hold any kind of sql statement(select, update, delete, insert)
I want to uppercase the column and table names in that statement.
Let's say we have:
select id from person where name="Dave"
And I want
select ID from PERSON where NAME="Dave"
Until now I have found some Sql parsers in Java, but I am wondering if there is another faster easier way that parsing the sql and rebuilding it.
EDIT
Just to clarify the question further, the database collation is in Turkish and the problem that I am trying to solve is the "Turkish i problem". The names of columns/tables in DB are all in uppercase, however the Java application generates sql statements with lowercase columns and tables