Advertisement
mikjaer

Untitled

Apr 4th, 2017
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. SELECT
  2. id,
  3. email,
  4. birthday,
  5. birthmonth,
  6. birthyear,
  7. str_to_date(concat(birthmonth,"/",birthday,"/",birthyear), '%m/%d/%Y') AS birthdate
  8. FROM
  9. users
  10. WHERE
  11. birthdate > str_to_date('1990/00/00','%m/%d/%Y');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement