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

Home -> Community -> Usenet -> c.d.o.server -> Re: pb sqlserver to oracle

Re: pb sqlserver to oracle

From: Telemachus <telemachus_at_ulysseswillreturn.net>
Date: Thu, 30 Jan 2003 11:29:23 -0000
Message-ID: <n08_9.6390$V6.8430@news.indigo.ie>


Oracle will give errors since this is procedural SQLServer code and not a SQL statement.

just

run
SELECT
UNION
SELECT otherwise it's down to the PL/SQL Users Guide and write a stored procedure to correspond to the one you are using in SQLServer.

HTH
"slashes" <slashes_at_oreka.com> wrote in message news:f2d1fb36.0301300127.42464cf5_at_posting.google.com...
> Hello,
>
> I'm newbie in Oracle and I'd would like to transform my SQL Server
> statement to Oracle statement. I don't know how transform my SQl
> statement (oracle gives errors).
>
> Here is my code:
>
>
> IF((select count(*) from Acteurs) != 0)
> BEGIN
> select ...
> union
> select ...
> END
> ELSE
> BEGIN
> select ...
> END
>
> If anyone could help me;
>
> Thanks a lot,
>
> Jerome
Received on Thu Jan 30 2003 - 05:29:23 CST

Original text of this message

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