Guest User

Untitled

a guest
Jul 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. SELECT * FROM `table_name` where timestamp_col1 AND timestamp_col2 BETWEEN
  2. '2018-07-23 11:45:25' and '2018-07-23 14:45:25'
  3.  
  4. $this->getEntity()
  5. ->whereBetween('timestamp_col1', [$start, $end])
  6. ->orWhereBetween('timestamp_col2', [$start, $end])
  7. ->get();
Add Comment
Please, Sign In to add comment