Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Validate SQL Queries
padmanabh dongre
Greenhorn
Posts: 24
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Is there any way I can validate the syntax of an SQL query in
java
without actually executing it in the database ?
Regards,
Padmanabh
kundi kx
Greenhorn
Posts: 10
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
CHeck and see if your Database server has a SQL console you can use, and try your SQL there.
Gregg Bolinger
Ranch Hand
Posts: 15304
6
I like...
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you are needing the syntax to be checked in your program, look into Regular Rxpressions for checking the syntax. It's how compilers work.
Avi Abrami
Ranch Hand
Posts: 1143
1
I like...
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Padmanabh,
Asked (and answered -- by me) in this forum:
[Assumes you are using an Oracle database!]
https://coderanch.com/t/298353/JDBC/java/Compiling-SQL-statement-before-execute
Good Luck,
Avi.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to use Bind Variable with FROM and UPDATE clauses in PreparedStatement???
Specifying Table Name Dynamically in Insert Statement....
does OracleDriver really precompile a PreparedStatement?
Java Lib to Validate SQL Query for Syntex
avoid sql injection
More...