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: Michael Peppler <mpeppler at peppler dot org>
Subject: Has BCP OUT been implemented yet ?
Date: May 14 1999 4:10PM

Lin, Arthur writes:
 > 
 > 	Does anybody out there know if BCP OUT has been implemented yet ?
 > 

No it hasn't.

Use 

local $" = "\t";
open(OUT, ">the_table.bcp") || die "Can't open bcp file: $!";
$dbh->sql("select * from the_table", sub { print OUT "@_\n"; });

__END__

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com