Domanda

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!

È stato utile?

Soluzione

Try this:

from sqlalchemy.sql import func
# ...    
~exist(func.next_value()).where(...)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top