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 MBAY dot NET>
Subject: column names and Sybperl
Date: Sep 29 1998 1:28PM

$Bill Dossett writes:
 > 
 > I'm using Sybperl and very new to SQL.

Questions about sybperl should go to the sybperl-l list, not to
dbi-users. Please see http://www.mbay.net/~mpeppler for details on how 
to subscribe to that list.

 > When I do a select from an SQL database,
 > do the headings of the columns get returned
 > in any array that is accessible?

Either use dbcolname() or  ct_col_names() to get an array of column
names.

You can also retrieve the row data in hash form, where the keys are
the column names.

Please read the sybperl man page for details.

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com