On Apr 21, 11:22 am, "Stefano" wrote:
> Using sqlalchemy with pyodbc and mssqlserver
> Why sa always generate identity ?
>
> many thanks here the sample
>
> tb = Table('prova',meta,Column('chiave', Integer, primary_key=True))
> tb.create()
>
> CREATE TABLE prova (
> chiave INTEGER NOT NULL IDENTI
Using sqlalchemy with pyodbc and mssqlserver
Why sa always generate identity ?
many thanks here the sample
tb = Table('prova',meta,Column('chiave', Integer, primary_key=True))
tb.create()
CREATE TABLE prova (
chiave INTEGER NOT NULL IDENTITY(1,1),
PRIMARY KEY (chiave)
)
Stefano
--
http://ma