Hi all,

Anyone have any ideal how to search a particular hour.

usually we can use datepart function in sql.

for example

datepart(hour, datetime) in (7,8)

But it is not really working in sqlalchemy

I tried

func.datepart(func.hour, xx.c.datetime)._in((7,8))

but i got

NotSupportedError: (NotSupportedError) ('Python type Function not
supported.)

can any one help me on this?

Ning


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to