PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Avis, Ed" <avised at kbcfp dot com>
Subject: RE: Ctlib - ct_sql question
Date: Dec 22 2003 9:56AM

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