Help for this page

Select Code to Download


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