Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: reordering a stack with little effort

by fberg (Initiate)
on Mar 11, 2005 at 01:10 UTC ( [id://438491]=note: print w/replies, xml ) Need Help??


in reply to reordering a stack with little effort

I think the best way to solve this problem is to avoid it. I don't see whats the problem in re-ordering the QUESTION_NUM field. If I remember well, it should be a single, simple SQL command to do that for you. Suppose you want to insert a new question after your question number 17, it should be like this:
update QUESTIONS set QUESTION_NUM = QUESTION_NUM +1 where QUESTION_NUM + > 17
Then insert your new question 18.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-19 00:12 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found