this is MySQL specific and is not represented by a SQLAlchemy structure right 
now (which would be a MERGE construct that somehow doubles as a MySQL 
placeholder) so just use a string:

session.execute("INSERT ... ON DUPLICATE KEY UPDATE...")


On May 1, 2014, at 2:01 PM, Jinu p.r <[email protected]> wrote:

> 
> Hi All,
>              
>  I            
> essentially need to do an INSERT ... ON DUPLICATE KEY UPDATE on an existing 
> table with composite primary key using session with bind.
> What is the idiomatic way to implement it? 
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to