On 23-Sep-2001 Neil Silvester wrote:
> 
> How do I convert (or create from scratch) a table who's AUTO_INCREMENT 
> column would be a, b, c, d, e and so forth up to z?
> At the moment I am using an INT column 1, 2, 3, 4, etc, but I would really 
> be able to make good use in my queries if this column was alphabetical 
> instead.
> Thanks.
> 

select char(id + 96) as alphaid ...

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                            (53kr33t w0rdz: sql table query)

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to