Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Exist clause in PL/SQL
On 13 Nov 2001 04:15:00 -0800, yavior_at_mercury.co.il (Yaron Avior)
wrote:
>DStevens <dstevens_at_navidec.com> wrote in message news:<3BF02A3F.6288F258_at_navidec.com>...
>> Or
>> begin
>> insert into table ...
>> exception when others then -- catch any error, can also check specifically
>> for just duplicate key violation.
>> null;
>> end;
>>
>> >
>I need to execute it via VB client, through ADO connections &
>recordsets. What are my options ?
If VB, you have two options that I can see. (I'm actually using Access syntax, but I'm assuming VB is very similar when using ADO.)
Dim MyDB AS Database
SET MyDB = ....
MyDB.Execute "INSERT INTO A WHERE EXISTS ()"
Brian Received on Tue Nov 13 2001 - 06:54:56 CST
![]() |
![]() |