Jump to content
  • 0

DELETE FROM object_data


ShoobieStomper

Question

Hey, guys! I have been doing a lot of research on SQL, but I cannot seem to figure this out. I want to delete all of the vehicles from my server because I have changed some settings in my init.sqf. I would like to make a batch file to do so. I am using MySQL Workbench along with XAMPP. They are both installed in the same folder on my desktop.

I think this is the right code, but I don't know how to lump it all into a batch file.

DELETE FROM object_data

Thanks in advance! :-)

P.S. I tried to delete all of the vehicles directly in MySQL Workbench, but I couldn't get it to work.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
DELETE FROM 
`Object_DATA`
WHERE `Classname` 
NOT REGEXP 'land|storage|shed|bench|wall|floor|fence|pump|wood|hrescue|stick|pole|generator|panel|house|rack|bag|stand|barrel|canvas|wire|hedgehog|net|trap|ramp|fort|sand|scaffold|misc|nest|parachute|border';

 

Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...