Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. delete from t1, t2
  2. using wp_options t1
  3. join wp_options t2 on t2.option_name = replace(t1.option_name, '_expires', '')
  4. where (t1.option_name like '\_wc\_session\_expires\_%')
  5. and t1.option_value < UNIX_TIMESTAMP(NOW())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement