-4

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 .

1
  • 1
    @ Didar J. Jamal : please improve the question with more content and formatting. In the current shape it deserved to be closed. Commented Apr 6, 2012 at 16:47

1 Answer 1

0

This question has been asked before. Short answer, no. There are as many SQL variants as there are SQL databases.

Sign up to request clarification or add additional context in comments.

2 Comments

Then vote to close as a duplicate instead of posting an answer stating it is.
thanks dear , but its very complex ,tel my how can write a program to check ONE statement ,, example (SELECT * FROM TABLE tble ) thanks dear friend , please help .

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.