简体   繁体   中英

SQL Alchemy(core) row value expression

How can I generate row value expressions( https://www.dummies.com/programming/sql/how-to-use-sql-row-value-expressions/ ) using SQL alchemy core?

select some_num, some_id where (some_num, some_id) > (5, '462eb1f5-0ac4-41df-876c-88705174808c') from some_table

I've tried things like this:

this_condition = ((sprints.c.sprint_seq, sprints.c.id) > (params.sprint_seq, marker))

Also couldn't find anything on "row value expressions" in sqlalchemy documentation...

Hopefully some wizard can help:)

Looks like the term I was looking for was "row-wise comparison" in the postgres world. For those who end up here in the future: https://docs.sqlalchemy.org/en/14/dialects/postgresql.html#table-values-row-and-tuple-objects

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM