corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » MYSQL query question


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author MYSQL query question
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
28th Aug 07 at 18:32   View Garage View User's Profile U2U Member Reply With Quote

Is it possible to select from say 1000 records, but in two parts.

ie Get the first 500 records, do something with them, then get the next 500 records and process them?

I know how to limit one request but not to carry on where it left off
Dan Lewis
Member

Registered: 31st Jan 05
Location: Leicestershire
User status: Offline
28th Aug 07 at 18:35   View User's Profile U2U Member Reply With Quote

im sure there is a way but what you could do is create a new col with and increasing number for each new record then select the data from set points
Nismo
Member

Registered: 12th Sep 02
User status: Offline
28th Aug 07 at 18:45   View User's Profile U2U Member Reply With Quote

yeah if its an exect amount and each record has an ID number of somesort then do X with results ID1-500 then do XY with records ID501-1000 etc...
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
28th Aug 07 at 18:48   View Garage View User's Profile U2U Member Reply With Quote

the problem is, i need to generate a mass email which is easy enough, but my smtp server allows only 452 email requests at once, maybe if i split the emailing task up it will work?
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
28th Aug 07 at 19:04   View Garage View User's Profile U2U Member Reply With Quote

Programming, a loop counter and some pause statements I would imagine.

Not sure its possible just in the db.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
28th Aug 07 at 19:08   View Garage View User's Profile U2U Member Reply With Quote

got it working, you may have some emails by accident

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
mysql function help :D waynep Geek Day 2 1337
20th Jul 03 at 20:59
by waynep
 
Server Help Jodi_the_g Geek Day 7 1430
19th Jan 06 at 15:18
by Jodi_the_g
 
My SQL-Nearly there! Tom J Geek Day 31 3132
25th Dec 06 at 23:32
by Ian
 
(my)SQL dudes Dom Geek Day 9 631
3rd May 07 at 23:50
by Dom
 

Corsa Sport » Message Board » Off Day » Geek Day » MYSQL query question 29 database queries in 0.0100582 seconds