Errto has asked for the wisdom of the Perl Monks concerning the following question:
I have an application that allows users to type in SQL statement that my application will then store for later use. I would like to make sure, at time of submission, that the user has put in a valid SQL statement for the particular database that they are planning to run it against. But I would prefer not to actually execute the statement, especially if it is an UPDATE or INSERT, which it could be. I'm aware of SQL::Statement, but I need a few things it doesn't provide:
What methods are there through DBI or some other module that might allow this? What about DB-specific methods if there are no generic ones (my main targets are Oracle, DB2 and MySQL)? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI - validate SQL without executing
by ptum (Priest) on Apr 10, 2006 at 17:58 UTC | |
|
Re: DBI - validate SQL without executing
by jZed (Prior) on Apr 10, 2006 at 18:47 UTC | |
|
Re: DBI - validate SQL without executing
by erix (Prior) on Apr 10, 2006 at 17:07 UTC | |
|
Re: DBI - validate SQL without executing
by davidrw (Prior) on Apr 10, 2006 at 16:38 UTC | |
by Errto (Vicar) on Apr 10, 2006 at 17:57 UTC |