David Blomstrom <[EMAIL PROTECTED]> wrote:
> I just switched my primary key from a numerical column
> to abbreviations, primarily because the latter are
> more distinctive and easier for me to work with. The
> flip side is that my row order has been turned upside
> down.
> 
> I made my database in a spreadsheet, with North
> America (#1) at the top and Antarctica at the bottom,
> and that's how my tables display on my web pages. But
> switching to an alphabetical key puts Antarctica at
> the top and North America near the bottom.
> 
> What's the best solution? Can I retain my alphabetical
> primary key but also retain a numerical index, used to
> maintain table order?
> 

Yes, you can have additional column for sort order.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to