Removing unused Items from the database
Posted: Fri 20 Jan 2012 3:22 am
Is there an easy way to remove items not on the template from the database?
An Open Source community for historical flight simulation.
https://www.seowhq.net/seowforum/
Code: Select all
UPDATE Object_Specifications SET Nationality='z' WHERE NOT EXISTS (SELECT DISTINCT Obj_Type FROM ObjMissionData WHERE Object_Specifications.Object_Type=ObjMissionData.Obj_Type);
Code: Select all
UPDATE Object_Specifications SET Nationality='z'