mysql join的on條件內 能夠帶and創建多條件join

mysql join on 能夠帶and,例如: select * from (select id,realname from `user` where id=157) a left join `crm_customer2user` cu on a.id=cu.userId and cu.customerType='A' 用於將被join表沒有對應數據的時候也能夠將主join表的數據顯示出來
相關文章
相關標籤/搜索