Jump to content

Cancellare categorie vuote


daninapoli

Recommended Posts

Salve esiste un modo per eliminare le categorie vuote, che non sia sql ?
Da sql ho lanciato questa :
 

"select * from pr_category where id_category not in (select id_category from pr_category_product)"

qualcuno ha fatto qualcosa del genere giusto per avere conferma.
Diciamo dovrei prendere tutte le categorie che non sono inserite in nessun prodotto, se così corretto dovrebbero essere vuote.
La cosa che mi chiedo in caso di sottocategorie credo che non vada bene..
 

Qualcuno sa qualcosa?


 

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
×
×
  • Create New...