Вопрос

I'm trying to implement

NOT EXIST (SELECT 'NEXT' FROM ... )

in python sqlalchemy and is having trouble figure out the SELECT 'NEXT' syntax. I did find there is a next_value() in sql next_value

Ive tried

~exist(next_value()).where(...)

but next_value() is not defined. What may the proper syntax be?

Thanks in advance!

Это было полезно?

Решение

Try this:

from sqlalchemy.sql import func
# ...    
~exist(func.next_value()).where(...)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top