View Full Version : Moving Fields Up/Down
04-06-2007, 03:18 PM
This is me just being picky but can I move fields up or down in my table? My table looks like this I want to move 1 and 2 up...
04-06-2007, 03:28 PM
ORDER BY fieldname at the end of your query.
If you are talking about the default, not sure there. You could make a new key.
In PHP managers (PHPMyAdmin etc) this is based on queries in that itself, so you might not be able to use it in there, or get it to work like this, etc.
you could also grab all the data, using ORDER BY, then delete that table, etc. then put the contents back in. Careful on this though, if it did happen to lose it before resetting.
04-06-2007, 03:31 PM
Heya dj... Yea I'm talking about the default...
I guess I'll try the last option... Also when I insert fields, then delete them the auto_incremement starts from the previous data, can you reset the auto_inrement field?
04-07-2007, 07:22 AM
The auto increment is.... automatic. You can't really control that. You could do the same and just reset it by resetting the whole thing. You could see what happens with deleting that column then adding it back in, but the order might be messy. Not sure there.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.