0
I have two tables:
produtos
- id_produto
valores
- id_produto
id_produto
would be a column, equal for the two tables.
I need to delete the records from the table values, but only those that are NOT also in the table products.
Ex:
I have two products registered, and in the table values owned the ID of these two products. For some reason I deleted a product from the table products, but the record was there in the table values.
I want to erase that record there.
How can I do that?
No need for Inner Join there?
– Wendler
Hi @Wendler no need no
– Felipe
@Wendler is not possible to do
INNER JOIN
in theDELETE
.– Roberto de Campos