Am 21.05.2017 um 13:45 schrieb R0R0N0A:
it's true that I insert the same record every time I run the code
But it's unique , right ? it shouldn't insert to the table right ?
Quite right - and obviously it didn't. The database system must tell you
that it couldn't insert the record. And of course any software between
you and the DBMS must relay that message. And that's exactly what
happened, as far as I can see.
My purpose is loop the code and see if any new record updated , if so ,
insert into the table .
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.