comtekso
asked on
Prepend and Auto Increment Primary key?
How do you prepend and auto increment primary key? I would like to prepend it with a letter. What would I change the data type to?
you would then attach the value to your letter header or title
ASKER
I'm not sure I understand. Would that allow me to have the ID be something like a1, a2, a3 etc...?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK thanks.
did you find your answer?
thank you for grade!!!
;-)
;-)
CREATE TABLE tblInfo (
ID INT NOT NULL AUTO_INCREMENT,
title VARCHAR(150),
category VARCHAR(150),
PRIMARY KEY(ID)
)