Forums

This topic is locked

MySQL auto increment format

Posted 08 May 2003 05:38:11
1
has voted
08 May 2003 05:38:11 Jeff Powell posted:
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. For example, ord5001, ord5002, ord5003, etc. Does anyone know how to do this in MySQL?

Reply to this topic