SQLServer IDENTITY Column with text

后端 未结 8 729
南旧
南旧 2020-11-30 10:48

How would I create an IDENTITY column in SQLServer with text in the column?

Example:


ABCD-987065
ABCD-987066
ABCD-987067

8条回答
  •  -上瘾入骨i
    2020-11-30 11:18

    Nope, sorry. The identity "property" can only be placed on columns with the integer or decimal data type.

提交回复
热议问题