Hi!
I'm developing a web-application, which has SQL -query interpreter.
The user should be able to store SQL -sentences to the database for further use, but the problem is that now queries with errors in syntax are stored in the database.
Is there any good ways to validate the sentence before writing to the database? If it has errors, an error message is viewed.
Thank you!
I'm developing a web-application, which has SQL -query interpreter.
The user should be able to store SQL -sentences to the database for further use, but the problem is that now queries with errors in syntax are stored in the database.
Is there any good ways to validate the sentence before writing to the database? If it has errors, an error message is viewed.
Thank you!