Vehicle Cleanup Query

1 post in this topic

I'm not sure if this is 100% accurate, but if any of you SQL ninjas can look it over that would be great.  This is what I am using to basically clean up vehicles from inactive players that haven't logged in for 20 days:

DELETE from vehicle where account_uid IN (select uid from account where last_connect_at <= DATE_SUB(NOW(), INTERVAL 20 DAY))

I think it works :)

Edited by agentGoonie

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.