Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Reviewing Rows from MSSQL SELECT statement

by Nevtlathiel (Friar)
on Jun 08, 2005 at 08:50 UTC ( [id://464593]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://464593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-25 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found