Guest User

Untitled

a guest
Oct 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. select * from sales WHERE updated_at BETWEEN
  2. date_add('2018-10-24', INTERVAL -10 HOUR)
  3. and
  4. date_add('2018-10-25', INTERVAL -10 HOUR)
  5.  
  6. Sale.query().whereBetween('updated_at',[data.date1,data.date2])
Add Comment
Please, Sign In to add comment