如何使用varchar数据类型自动递增... [英] How to do auto increment with varchar datatype...
本文介绍了如何使用varchar数据类型自动递增...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将注册ID递增为
S0001那么我该如何进行自动递增....
请建议我
I want to increment the Registration Id as
S0001 so how can I do with auto increment....
pls suggest me
推荐答案
使用存储过程,而不要使用INSERT语句.
示例如下:具有NVARCHAR/VARCHAR数据类型的自动递增的ID [ ^ ]
Use a stored procedure instead of the INSERT statement.
An example is here: Auto-incremented ID with NVARCHAR/VARCHAR datatype[^]
这篇关于如何使用varchar数据类型自动递增...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文