in reply to Reviewing Rows from MSSQL SELECT statement

Update: Whoops, my bad, that'll teach me not to read the question properly. VSarkiss is correct and thanks for pointing it out :)

my $sth = $dbh->prepare("SELECT * FROM $table"); $sth->execute; while (my $array_ref = $sth->fetch) { # #do something # }

And if you're not you should probably check that your query executes too :)

----------
My cow-orkers were talking in punctuation the other day. What disturbed me most was that I understood it.

Replies are listed 'Best First'.
Re^2: Reviewing Rows from MSSQL SELECT statement
by VSarkiss (Monsignor) on Jun 08, 2005 at 13:38 UTC