in reply to More on selecting rows with DBI...
If you're using MySQL (I haven't used any other rdbms), LIMIT is a good option, like others have said. From the manual: "mysql> select * from table LIMIT 5,10; # Retrieve rows 6-15" looks like what you need. But unless the offset parameter of LIMIT can be a bound value (anyone know?), I think you'd take a performance hit for having the DB redo the query plan each time.
A side note that bit me: if you want to use LIMIT with UPDATE, you'll need MySQL 3.23.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: More on selecting rows with DBI...
by btrott (Parson) on May 02, 2000 at 20:00 UTC | |
by chromatic (Archbishop) on May 02, 2000 at 20:19 UTC | |
by btrott (Parson) on May 02, 2000 at 20:32 UTC |