Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving primary keys
Message
Information générale
Forum:
WinDev
Catégorie:
Base de données, ODBC, OLE DB
Divers
Thread ID:
01642881
Message ID:
01642890
Vues:
34
>>Are you using SQL Server?
>>
>>If yes, perhaps just create a stored procedure and return the ID (you can use OUTPUT clause of the INSERT command).
>>
>
>
>I am new to WinDev, and as I said I do not know how to use OUTPUT on the its queries and did not find examples either (the examples I saw were not for queries but for direct sql statements)

Very simple example:
CREATE TABLE dbo.TestInsert  (InsertedPK int identity, Name varchar(100))
GO

INSERT INTO dbo.TestInsert  OUTPUT Inserted.InsertedPK  VALUES ('Kevin Goff') 
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform