Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-05-2006, 07:58 PM
turnitup
 
Posts: n/a
Default Storing sequences

This may be something I need to sleep on, but I'd be grateful for some tips.

I need to create a delivery list, which I can maintain in order, and
insert and move individual entries ("before" and "after"). There are a
number of individual "runs", which should be separate, thus...

SELECT DELIVERYID, RUNORDER FROM RUNTABLE WHERE DRIVERID = x ORDER BY
RUNORDER ASC.

The question is, let's say I want to move deliveryid x to another place
in the runorder? How can I do that and "bump up" any existing deliveries
above it so that when I run the query again it's in the right place?

Any thoughts for the structure or queries would be gratefully received,


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:33 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.