Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Carla
You can use a NEXTID type table to hold the last numeric value used by the table, then when you need the next value, you can obtain it from this table, then bump the id up by 1.
Kev
>Hi,
>
>I have a multiuser application, and some table have a numeric field that must be incremented before the TableUpdate.
>this field can´t be an identity column, so i have to find the last number in the table to replace this field with the new number before the tableupdate. How can I do this operation and without that another user can insert a new record with the same number.
>
>I`m using Remote Views and manual transactions.
>
>Thanks,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement