Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1. SELECTing the total number of registrations and dividing by 100 to +get number of iterations for loop 2. for (index=1; index < num_iterations; index++){ SELECT RegistrantLastName FROM registrations ORDER BY Registrant +LastName LIMIT (100 * (i-1)) + 1,1 AS RangeStart; SELECT RegistrantLastName FROM registrations ORDER BY Registrant +LastName LIMIT (100 * i),1 AS RangeEnd; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can this be done entirely in MySQL?
by ChemBoy (Priest) on Apr 21, 2005 at 20:01 UTC | |
by gam3 (Curate) on Apr 22, 2005 at 03:22 UTC | |
|
Re: Can this be done entirely in MySQL?
by davidrw (Prior) on Apr 21, 2005 at 16:58 UTC | |
|
Re: Can this be done entirely in MySQL?
by dragonchild (Archbishop) on Apr 21, 2005 at 18:14 UTC |