LanceDeeply has asked for the wisdom of the Perl Monks concerning the following question:
yeilds:$db->sql(" select starttime = getdate() select a=1, b=2 select endtime = getdate() " ); do { while ($db->FetchRow()) { my @columnNames = $db->FieldNames(); my @values = $db->Data(); print join "|", @columnNames; print "\n"; print join "|", @values; print "\n"; } } while $db->MoreResults();
But I was expecting:starttime 2002-08-01 18:45:31.277 starttime 1 starttime 2002-08-01 18:45:31.277
Thanks!starttime 2002-08-01 18:45:31.277 a b 1 2 endtime 2002-08-01 18:45:31.277
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: having trouble w/ Win32::ODBC's MoreResults
by screamingeagle (Curate) on Aug 01, 2002 at 17:53 UTC | |
Re: having trouble w/ Win32::ODBC's MoreResults
by Cine (Friar) on Aug 01, 2002 at 18:36 UTC |