Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to verrify an Insert into using Sqlexec
Message
De
27/04/2000 16:22:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00363680
Message ID:
00364271
Vues:
24
Your code below did it. If in the below code, the customers table had a trigger that called an SP which did an insert into a table with an identity field, wouldn't you have returned the identity of the table used in the trigger?

>That is why you don't do that...< s >.....
>
>>>
>>>CREATE PROCEDURE  customers_add @Name Varchar(50),@newkey INTEGER OUTPUT
>>>
>>>AS
>>>
>>> BEGIN TRANSACTION
>>>
>>> INSERT INTO Customers(name)
>>>    VALUES (@name)
>>> SELECT @newKey = @@IDENTITY
>>>
>>> COMMIT TRANSACTION
>>>
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform