Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete relating two tables?

Status
Not open for further replies.

hyperbug

Programmer
Aug 10, 2001
25
0
0
ES
I tried the following:

delete empopattribute
from employeropening,
empopattribute
where employeropening.employerOpeningId = empopattribute.employerOpeningId
 
The delete statement has the syntax:

delete from table where condition;

If you want to erase a column value you do:

update table set column=null where condition;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top