如何在我的Sql中查找序列。 [英] How Can I Chage The Sequence In My Sql.
本文介绍了如何在我的Sql中查找序列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个要求,就是我需要更改自动递增值的顺序。
现在说序列是14001-- 14表示当前年份
在12月31日12:00上午序列应该设置为15001 --- 15表示明年
实现此目的的可能性,请让我知道输入。
Hi,
I have a requirement,that is i need to change the sequence of the auto incremented value.
say now the sequence is 14001-- 14 indicates current year
on the December 31st 12:00am the sequence should set to 15001 --- 15 means next year
what is the possibility to achieve this, Please let me know the inputs.
推荐答案
试试这个:
ALTER TABLE tablename AUTO_INCREMENT = value
如果这有帮助请花时间接受解决方案。谢谢。
Try this:
ALTER TABLE tablename AUTO_INCREMENT = value
If this helps please take time to accept the solution. Thank you.
这篇关于如何在我的Sql中查找序列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文