and then construct the statement on the fly.__PACKAGE__->set_sql('update', <<""); UPDATE __TABLE__ SET %s WHERE __IDENTIFIER__
You can use placeholders to use it latter in a similar search.sub my_sqlset { my ($self,$name,$statement) = @_; # escape your statement here $self->set_sql($name,$statement); }
In reply to Re: Problem with table joins with Class::DBI
by Anarion
in thread Problem with table joins with Class::DBI
by thunders
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |