Help for this page
# Two scripts in parallel: my $highest_id1 = $dbh->do("select max(id) from my_table"); # first sc +ript ... if ($highest_id1 == $highest_id2) { die };
create table my_table ( id integer primary key not null, ... id integer not null auto_increment, .... );