hello guys
i use xcart , and use the csv import to update the products prices , this doesnt delete the products that not in my csv file
the number of rows in the products table is about 3000 , we maybe have 2000 products for sale , the other 1000 products must be delete from the website , or the for sale status change to NO ,
i have the for sale product list , but in the data base i have the for sale and not for sale products , i should delete the not for sale
for example i have in the products table these SKU numbers ( products numbers )
1
2
3
4
5
6
7
8
9
10
and i need to delete 3 6 9 from this table , but i know only 1 2 4 5 7 8 10 ,
i need to run something like
delete from products where sku <> 1 , 2 , 4 , 5 ,7 ,8 , 10
<> is the not equal ( or != )
maybe it is easier to alter the rows that doesnt exist in my list ( the rows 3 6 9 ) and change the value of the column forsale from Y to N
i am confused and confusing you , sorry but i do not know how to explain it in a better way
i only need to know how to set the delete statement in a correct and safe way to delete the rows that i do not know , the rows that not in my list ,