Answer the question
In order to leave comments, you need to log in
I need to write a postgresql query, can you help me?
Now I have a request
"SELECT id, extract(epoch from (now() - create_time::timestamp)) FROM ::users WHERE lastvisit IS NULL"
, Then Iforeach ($query as $value)
if ($value['date_part']>86400*3) \DB::query("DELETE FROM ::users WHERE id=?",[$value[id]]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question