in reply to Simple Template System That Supports Conditional Content?
Regards,my $dbh = DBI->connect($data_source, $opts...); my $update_stmt = $dbh->prepare("UPDATE tbl_name SET `CUSTOMER NAME` = + ?, AGE = ?, STATUS = ?, ..."); ... $update_stmt->execute( defined $customer_name ? $customer_name : undef, defined $age ? $age : undef, defined $status ? $status : undef, ...);
- caelifer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Template System That Supports Conditional Content?
by eric256 (Parson) on Aug 29, 2007 at 18:54 UTC | |
by caelifer (Scribe) on Nov 07, 2007 at 21:22 UTC |