DELETE FROM tbl_usergroups,’tbl_group’ WHERE (tbl_usergroups.tbl_group_GroupID=’tbl_group.GroupID’) AND(tbl_usergroups.tbl_group_GroupID=27)
GroupID is a foreign key to tbl_usergroups
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if the rows are 1:1 mapping then you could use a view over the two tables and delete joined row from the view.
See this answer Does deleting row from view delete row from base table – MYsql? for more information.