• User Attivo

    Delete join

    Ciaooo.
    :smile5:
    Ho creato 2 tabelle:

    categorie
    id_cat 1 2
    nome Mare Monagna

    news
    id 1 1 1
    id_cat 1 1 1
    testo Bello Brutto Carino

    Fin qui' tutto ok.
    Ma come faccio ad eliminare una categoria con le rispettive voci in news?

    DELETE FROM categoria,news
    WHERE categoria.id_cat=news.id_cat
    :gthi:
    Grazieeee