|
|
| There's more than one way to do things | |
| PerlMonks |
Re: How can I pass number of rows value in psql table into HTML?by psini (Deacon) |
| on May 19, 2008 at 19:31 UTC ( #687451=note: print w/ replies, xml ) | Need Help?? |
|
SELECT count(*) FROM yourtable is much better: it is faster and avoid transferring to your program the contents of the entire table (with huge tables this can make a huge difference) This statement return only one row, with only one integer value, which is the number of rows in yourtable
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||