Re: How to retrieve multiply recordsets returned by statement.

2002-04-18 Thread Waldemar urowski
On Thu, 18 Apr 2002 13:33:50 +0400 [EMAIL PROTECTED] wrote: This statement returns two recordsets. When I use 'fetchrow_arrayref', it returns only first recordset. How can I retrieve second? Fetchrow fetches, well - as it names says, just one row. Call it as many time, as many rows is

RE: How to retrieve multiply recordsets returned by statement.

2002-04-18 Thread NYIMI Jose (BMB)
While( $array_ref = $sth-fetchrow_arrayref() ) { #recordset treatement here ... } José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: How to retrieve multiply recordsets returned by

Re: How to retrieve multiply recordsets returned by statement.

2002-04-18 Thread Thomas A. Lowery
Look in DBD::ODBC documentation: This clip is from one of the DBD::ODBC tests 09multi.t do { # print join(:, {$sth-{NAME}}), \n; while ( my $ref = $sth-fetch ) { # print join(:, $ref), \n; } $result_sets++; } while ( $sth-{odbc_more_results} ) ;

RE: How to retrieve multiply recordsets returned by statement.

2002-04-18 Thread Jeff Urlwin
Read the DBD::ODBC pod regarding the attribute odbc_more_results and also see t\09multi.t for examples. Jeff -Original Message- From: ÷ÁÓÉÌÉÊ ðÏÐÏ× [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:34 AM To: [EMAIL PROTECTED] Subject: How to retrieve multiply recordsets