Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该使用什么类型来创建由字母和数字组成的 ID 号,它也会增加,例如“HP0001”增加到“HP0002”
“X”长度的 Varchar,或 2 个字段,1 个 varchar 和另一个数字,都必须是主键
您可以检查我在此示例中所说的内容:
http://sqlfiddle.com/#!2/df078/4