- or download this
INSERT INTO table (name) VALUES ("Roland684");
SELECT id FROM table WHERE name = "Roland684";
- or download this
INSERT INTO table (name) VALUES ("Roland684") RETURNING id;
- or download this
my $sth = $dbh->prepare($query);
my $insertedrecords = $sth->execute;
while (my $result = $sth->fetchrow_hashref) {
...
}