slvr_dagger has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is check to see how many rows were returned from a database select using the DBI. If it is only one row I want to do one thing, if it is more than 1 row I want to do something completely different. So how do I find out how many rows I have gotten back before I start printing out data? Is there a way to check that at the execute stage? Or somewhere between execute and the fetch?
Thanks for any help provided.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking return results from an execute
by chromatic (Archbishop) on Jun 28, 2002 at 21:31 UTC | |
by ides (Deacon) on Jun 28, 2002 at 21:52 UTC | |
|
Re: Checking return results from an execute
by tadman (Prior) on Jun 28, 2002 at 21:57 UTC | |
|
Re: Checking return results from an execute
by aersoy (Scribe) on Jun 28, 2002 at 21:45 UTC |