I can't seem to find a way to do this without passing raw SQL to .filter()

I could just do:

.filter(column == func.substring('string', 1, func.char_length(column)))

but is it possible to do it with LIKE?

I.e. I need to return all rows that match the beginning of a string, so for 
'string' I could match 's', 'st', 'str', etc.

Thanks,

Mark.


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to