Hello everyone,
I have a following question:

I use sqlalchemy within my python method as follows:


I want to be able to replace 'custom_column' with parameter passed in the 
method. The same way as it works fine for airport_sys_id, project_sys_id 
and value.

For example I want to pass in my method (1, 2, name_column, cat) and 
receive as follows:

query = AIRPORT.update(). \
            where(AIRPORT.c.airport_sys_id == 1). \
            where(AIRPORT.c.project_sys_id == 2). \
            values(name_column=cat)

I searched all I could but with no success. I would be extremely thankful 
for your support. Regards.


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/67448673-060d-449c-9dd9-19d5049c0c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to