my $query = "select " . do {local $" = ", "; "@select_array"} +. " from table " . "where " . do {local $" = " and "; "@where_array"};
Abigail
In reply to Re: Creating Dynamic SQL statements using arrays
by Abigail-II
in thread Creating Dynamic SQL statements using arrays
by johnirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |