On a project I am currently working on, we are supposed to differentiate between different classes of users based off their IDs (which are 10 digits). For example, one group's IDs should all start with a 9 (marking them as belonging to that group) and the other groups should start with a 5. Currently, the IDs are being assigned via autoincrement in a MySQL table. I know you can set the index of the autoincrement, but in this case it would only take care of one group's IDs (ie: the 9 group, but not the 5 group). Given that I only have one field for IDs, how could I go about making each group have a different number to begin with? Is something that is possible in MySQL? If not, how should I go about doing this? My goal is to assign the IDs automatically, with no user input necessary.