By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,282 Members | 1,617 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,282 IT Pros & Developers. It's quick & easy.

I need lock a row on DB2 Iseries

P: 2
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
Share this question for a faster answer!
Share on Google+

Post your reply

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