How to set a auto-increment value in SQLAlchemy?
5
votes
2
answers
62657
views
This is my code :
class csvimportt(Base):
__tablename__ = 'csvimportt'
#id = Column(INTEGER, primary_key=True, autoincrement=True)
aid = Column(INTEGER(unsigned=True, zerofill=True),
Sequence('article_aid_seq', start=1001, increment=1),
primary_key=True)
I want to set a autoincrement value from 1000. How do I do it?
Asked by Farhaan Patel
(51 rep)
May 25, 2018, 07:21 AM
Last activity: Sep 1, 2022, 04:34 AM
Last activity: Sep 1, 2022, 04:34 AM