Jonathan Vanasco wrote: > lock table > read last_used_number( year ) > increment last_used_number( year ) > unlock table
This can also be done in a one-shot, without needing to explicitly lock anything: UPDATE foo SET id = id+1 WHERE .... - Perrin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object