Results 1 to 2 of 2

Thread: Auto_increment

  1. #1
    Join Date
    May 2003
    Posts
    1

    Auto_increment

    Hi, I'm looking for some basic help. I am developing a MySQL database and want to auto increment a field, but I don't want it to just count 1,2,3, etc. I want the field to be a combination of letters and numbers, at least 8 digits long, completely random for security porposes, but do this automatically, everytime a record is added. Does anyone know how to do this?

  2. #2
    Join Date
    Feb 2003
    Location
    Johannesburg, South Africa
    Posts
    145
    Code:
    mysql> SELECT MD5( NOW() );
    +----------------------------------+
    | MD5( NOW() )                     |
    +----------------------------------+
    | fd2b7da27109302999758dabeaf6480c |
    +----------------------------------+
    1 row in set (0.15 sec)

Posting Permissions

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