Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select @@IDENTITY
Message
 
 
À
28/08/2006 13:16:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01149086
Message ID:
01149108
Vues:
8
Marc,

To add to Sergey's answer, @@idenity returns the value of the column defined as IDENTITY in the table.
CREATE TABLE [xyz] (
	[xyzno] [int] IDENTITY (1, 1) NOT NULL ,
>Why the following returns NULL value?
>
>INSERT INTO (...) VALUES (...)
>SELECT @@IDENTITY
>
>P.S.: The UniqueIdentifier is correctly generated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform