Hey. I'm trying to make a delete query, but it won't work.
Here are two tables
tab_a
id
name
tab_b
id
blah
Now what I want to do is delete from the table tab_b all rows related to a given "name".
I tryed:
DELETE FROM tab_b
WHERE tab_a.name = '$name' AND tab_a.id = tab_b.id
It doesn't work. Can this be done at all?
Thanks