If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > concurrency issues

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-04, 19:29
ypx5269 ypx5269 is offline
Registered User
 
Join Date: Sep 2003
Posts: 35
concurrency issues

Hi,

I have an MySql database and six users who access the database via a Delphi front end. The users need to download a copy of the db, make modifications, then upload. The question is that when they add a record (which will increment the customerID for example) and upload it how can I take care of the issues of having multiple records with the same ID number and thus causing an error.

Many thanks,

Jo
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 20:29
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
Generally you give each user a unique valid range of customerIDs. User 1 has values 1 to 1000, User2 values 1001 to 2000 and so on. In this way you can avoid the conflicts you are encountering.

Best I can come up with for this problem.
__________________
visit: relationary
Reply With Quote
  #3 (permalink)  
Old 01-17-04, 08:17
ypx5269 ypx5269 is offline
Registered User
 
Join Date: Sep 2003
Posts: 35
Hi Certus,

Many thanks for the help, it seems the most logical way forward and easy to implement.

Many thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On