Skip to content

Instantly share code, notes, and snippets.

@albang
Created December 26, 2013 11:03
Show Gist options
  • Select an option

  • Save albang/8132331 to your computer and use it in GitHub Desktop.

Select an option

Save albang/8132331 to your computer and use it in GitHub Desktop.
Utiliser des ranges horaires sur mysql avec un timestamp!
SELECT * FROM nomDeLaTable WHERE FROM_UNIXTIME(timestamp,'%H') >= '18' AND FROM_UNIXTIME(timestamp, '%H') < '20'
@albang
Copy link
Copy Markdown
Author

albang commented Dec 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment