- or download this
DBI Exception: DBD::Oracle::st execute failed: ORA-01400: cannot inser
+t NULL into ("SDB2"."BOOKS"."ID") (DBD ERROR: OCIStmtExecute) [for St
+atement "INSERT INTO books (rating, title) VALUES (?, ?)" with ParamV
+alues: :p1='5', :p2='TCPIP_Illustrated_Vol-2']
- or download this
sub url_create : Local {
my ($self, $c, $title, $rating, $author_id) = @_;
...
# Call create() on the book model object. Pass the table
# columns/field values we want to set as hash values
my $book = $c->model('DB::Books')->create({
- or download this
title => $title,
rating => $rating
});
}