Hi

I'm trying to write something like:

SELECT UNIX_TIMESTAMP(`time`) DIV 3600 * 3600

So far I managed to write:

SELECT UNIX_TIMESTAMP(`time`) / 3600 * 3600

using

DB.select(Sequel.function(:UNIX_TIMESTAMP, :time) / 3600 * 3600).sql

But I fail to see how to replace / with DIV

Any idea? Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/77b9ceea-024c-4c6c-91e2-b14aa8ad8b64n%40googlegroups.com.

Reply via email to