Jump to content

problem in inner join


Guest anbu

Recommended Posts

what is the query to delete the fields of two tables which are already joined by inner joinfor example table cust nameage addidtable prdpidpnameselect cust.name,cust.age,cust.add ,prd.pid from cust inner join prd on cust.id=prd.pid

Link to comment
Share on other sites

You cannot runa delte staement in a select statement...i think.try some like this

DELETE FROM cust c, prd pWHERE c.id = p.pid  --if these are the sameAND {some condition for table cust}AND {some condition for table prd}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...