search for: sr000023

Displaying 1 result from an estimated 1 matches for "sr000023".

Did you mean: 00000023
2007 Sep 18
2
Auto-incrementing column
Ok, I have an table column that needs to auto-increment, but isn''t the primary key (although I guess it could be). The format for the column is "SR001234" and it needs to autoincrement like so: SR001234 SR001235 SR001236 ... SR999999 How can I do this? I know Ruby has some pretty nice constructs for doing things like this, but I just don''t quite see how to put them