Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: DBI - retrieving a specific row

by Biker (Priest)
on Feb 04, 2002 at 11:21 UTC ( [id://143210]=note: print w/replies, xml ) Need Help??


in reply to DBI - retrieving a specific row

This is not really a Perl problem. It's more a DB question.

You need to have a unique identifier (often: a primary key) and then formulate your query to select only the row with this unique identifier.

Never select everything from your DB to search for the data in your application.
Select only what you need from the DB and use it in your application.

"Livet är hårt" sa bonden.
"Grymt" sa grisen...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2025-04-25 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.