delete all records from table except sql
snippet in sql

delete all records from table except sql

user7156

delete from yourTableName where yourColumnName NOT
IN(‘yourValue1’,‘yourValue2’,‘yourValue3’,.........N);