Slide 10
Slide 10 text
INSERT
•If the table has an auto-
incremented pkey, LAST_INSERT_ID
is filled in
my $entry = $dbix->table('entries')->insert({
author_id => 47,
body => '…',
created_at => time(),
});
# INSERT INTO entries ( author_id, body, created_at)
VALUES ( '47', '…', '1345196410' )