|
||||
sybperl-l ArchiveUp Prev Next
From: "Avis, Ed" <avised at kbcfp dot com> To split SQL at 'go' I use
$dbh->do($_) foreach grep /\S/, split /^\s*go\s*$/m, $sql;
You'd need to do something a bit different if you wanted to return
result sets from the SQL rather than just 'do'ing it.
--
Ed Avis
|