Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Next Number generator
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00533898
Message ID:
00536677
Vues:
21
>You don't need it in Oracle because it has a built-in database object that generates a series of unique integers called sequence. Sequences are typically used to generate data values that are required to be unique, such as primary key values.
>

Sergey,
SQL Server has the same type of thing called an Identifier field. The next sequential value is stored in the system tables for that table/column combination. However, it makes things like Parent-Child-Grandchild relationships a pain because you need the PKs in order to populate the FKs in the other tables before inserting.

For me, I like having a mechanism to manually retrieve the next key value.
Larry Miller
MCSD
LWMiller3@verizon.net

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

Click here to load this message in the networking platform