Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Next Number generator
Message
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00533898
Message ID:
00536677
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform