Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Validating SQL ??

Re: Validating SQL ??

From: Mark Powell <Mark.Powell_at_eds.com>
Date: 5 Jan 1999 14:29:12 GMT
Message-ID: <01be38b8$1d48c9c0$a12c6394@J00679271.ddc.eds.com>


Can you syntax check SQL before actually running it? In SQL*Plus you can explain the SQL. This will produce a plan when valid or syntax error messages when an error exists.

In Pro*C you set the compile option sqlcheck=full and provide a userid and password to log into the database with.

Matthew Green <matthewgreen_at_powersoft-services.co.uk> wrote in article <3692017F.2D44C35E_at_powersoft-services.co.uk>...
>
> Is there a command which will let me validate SQL statements before
> applying them e.g..
>
>
> update contacts
> set name = 'ABC'
>
>
> so I want to check if the syntax is right before executing.
>
>
> If you can shed any light
>
>
> Thanks
>
> Matt
>
>
>
>
>
Received on Tue Jan 05 1999 - 08:29:12 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US