Hi!
UPDATE ZUPINTID SET INTID=INTID+1 WHERE ID = 1
SELECT MAX(ZUPINTID.INTID) FROM ZUPINTID
but meanwhile can someone also increment INTID and I receive the same numbers. Transactions didn't help.
I am not too sure about what you exactly mean but the above two command lines give me a hint. You want to ADD new records in a table and you want to be sure that each record has unique INTID, is that right ?
I am not an expert on the issue but here is what I would do :
1. If INTID needs to be a number then I would define it as an AUTOINCREMENT and the numbering when adding would take care of itself
2. If INTID may for some reason not be an AUTOINCREMENT field I would use the SELECT MAX(ZUPINTID.INTID) FROM ZUPINTID command IMMEDIATELY after the INSERT record process AND THEN update INTID with the variable found.
HTH
Have Fun !
One line at a time ...
