我可以用
select * from sent_txts s
LEFT JOIN received_txts r ON s.msg_link_id = r.id
WHERE r.action_id = 6;
Run Code Online (Sandbox Code Playgroud)
顶部选择匹配的行,
如何编写查询以删除双方的匹配行?
就像是
delete sent_txts s
LEFT JOIN received_txts r ON s.msg_link_id = r.id
WHERE r.action_id = 6;
Run Code Online (Sandbox Code Playgroud)