質問

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