Guest anbu Posted February 2, 2006 Share Posted February 2, 2006 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 More sharing options...
aspnetguy Posted February 2, 2006 Share Posted February 2, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now