SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql long format id's

    Hi all.

    Well, what i'm trying to do is a table where the primary key of the type:

    {123FR 123RT 12364 RT465 YU456 ERT45 WER78 OP908}

    well, i know it's posible to generate this kind of ID's in DB's like SQL Server, but i can't find how to do this in MySQL

    Thanks in advance

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,262
    Mentioned
    60 Post(s)
    Tagged
    3 Thread(s)
    i don't think you can

    you'll have to generate it outside of mysql and then store it as a VARCHAR
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


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
  •