470,594 Members | 1,131 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

I need lock a row on DB2 Iseries

hello friends.

Im working with DB2 on Iseries and i need lock a row for generate a sequence number. the first user must generate id = 1 , the sencond must generate id = 2
and so on.

I use

"select id from generadorNumeros where clave = ? for update"

but every users recieve id = 1

please help.
Sep 30 '06 #1
0 1835

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Thad Rizzi | last post: by
9 posts views Thread by Robert Schneider | last post: by
4 posts views Thread by erkki | last post: by
1 post views Thread by Yanik Reid | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.