Help for this page

Select Code to Download


  1. or download this
    my $sql = <<"SQL";
        INSERT INTO $table ($column) VALUES (?)
    ...
    $sth->execute(...);
    my $rows = $sth->fetchall_arrayref( {} );
    say "New id: " . $rows->[0]->{id};