Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server - Oracle (How Can I.....)
Message
 
 
À
03/09/2001 04:26:21
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00551719
Message ID:
00552450
Vues:
17
1. Oracle is slightly different in this respect. Old and New values are only available when configuring the trigger to execute for each row. As such, the Old and New references only contain one row of data. They also are not tables. You can not include them in the FROM clause, only in the WHERE.

2. At the SQL> prompt type BEGIN and pres Enter. At the next line, type the name of your SP with the parameters enclosed in parentheses followed by a semicolon. At the next line, type END;. Then type / to execute the block.

HTH.

>1. How to count newly inserted records in a table of oracle, as in SQL Server
>
>SELECT COUNT(*) FROM inserted
>
>How the similar can be obtained in Oracle.
>
>
>2. How to call a stored proc. from 'SQL>' prompt. For example I have a procedure defined as,
>
>CREATE OR REPLACE PROCEDURE mytest (var IN OUT varchar2)
>AS
>BEGIN
>INSERT INTO TEST (Name, Age)
>VALUES ('aaa',25);
>END;
>/
>
>Now i want to execute this from the sql prompt.
>
>
>Thanks in advance.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform