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: "Matthew O dot Persico" <persicom at acedsl dot com>
Subject: Re: is there something like sth->fetchrow_hashref in sybperl
Date: Sep 24 2002 2:10AM

On Mon, 23 Sep 2002 14:59:36 -0700 (PDT), loan tran spaketh:
>Thanks very much Matt.
>You've given me exactly what i'm looking for.
>
>Good night!
>
>PS: when you have a chance, could you explain what is
>1 for. ($dbh->dbnextrow(1)). Thanks.
>
It's been a while since I used Sybase::DBLib but I think that the 1 makes the function return a hashref with column names as keys for each row. A false valued argument (0 ir no arg at all) maked the function return array refs:

$syb->dbnextrow(1) == $dbi->fetchrow_hashref()
$syb->dbnextrow(0) == $dbi->fetchrow_arrayref()
--
Matthew O. Persico