>Hello people.

>Does anybody know how to retrieve a single value from a DB?
>EX: select ID from my_table where my_key='12345';
>I have used a :selectrow_array() but its not a good idea to instantiate
>an
>array for retrieving only one value.

Why not?  There is ofcourse fetchrow_arrayref, fetchrow_hashref, but in your
case array() method is the best, since you are only retrieving one value, so
a list with one value is returned.

Ilya

>Thanx Dan

Reply via email to