Results 1 to 4 of 4

Thread: Moving Fields Up/Down

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Moving Fields Up/Down

    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...

    3 zsnfiCr0
    4 1WESIC2t
    1 YEHmyFsb
    2 g5yCxSQt
    5 vIlH9HrC
    6 r5jIexHb
    7 43Pw7LtL
    8 k0BHs7a1
    9 WxxiRNdb
    10 OivjIiUP

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •