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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Delete

Status
Not open for further replies.

PeteAmsterdam

Programmer
Jun 3, 2005
76
US
Do you know how to write a delete statement to delete by a composite
key/

I can do it by one, but 3 doesn't seem to work


 
???

DELETE MyTable
WHERE field1inCompKey = 'xyz' and field2incompkey = 'abc' and field3incompkey = 'def'

do you mean something other than that?


"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top