Possible Duplicate:
Any Java libraries out there that validate SQL syntax?
How can write a program with java to check syntax's SQL statements that it's true or false !,
example : when i write a statement in run time like
SELECT * FROM Table table WHERE column =2 ,
SELECT * FROM Product AS p ORDERED BY name ASC,
or any other statements of SQL. If the syntax as its the above print Syntax true else print Syntax False. please Help Dear Programmer .Thanks a lot .