Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Next Number generator
Message
De
24/07/2001 10:58:31
 
 
À
23/07/2001 20:33:26
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00533898
Message ID:
00534406
Vues:
27
Hi micheal,

Just wondering ; is this 'SQL server' code or still standard SQL code ? In other words, will this work on other databases ?

>There's a cleaner way. You can use UPDATE to increment and fetch the value without have to explicitly manage the locks:
>
>UPDATE id
>SET @nnid = idval, idval = idval + 1
>WHERE keyname = @tcKeyWord
>
>-Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform