Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
I'm using DBI to create some HTML tables through a CGI interface. One of the queries are generating a lot of data, so the resulting HTML gets very big. I want to build a function that will allow me to browse through the records, by only displaying a certain number of records at a time. Now, the easiest way of doing this is by letting DBI get all the records, and just display the ones you want. This is very bad for performance. Is there a way I can ask DBI to display eg. record 20 to 50? Is this a DBI thing or rather a SQL thing? I'm using mySQL and Oracle 8i.
Thanks!
#!/massyn.pl The early worm gets caught by the bird.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mySQL query
by PodMaster (Abbot) on Jul 07, 2003 at 07:56 UTC | |
|
Re: mySQL query
by Abigail-II (Bishop) on Jul 07, 2003 at 08:01 UTC | |
|
Re: mySQL query
by Massyn (Hermit) on Jul 07, 2003 at 08:26 UTC | |
by mpeppler (Vicar) on Jul 07, 2003 at 13:31 UTC | |
|
Re: mySQL query
by Aurynn (Novice) on Jul 07, 2003 at 08:03 UTC | |
by Abigail-II (Bishop) on Jul 07, 2003 at 08:06 UTC |