![](/img/trans.png)
[英]mysql how to select items from Table A where all corresponding items in Table B satisfy condition
[英]Select all items from a table and check if there is corresponding items in another table
用這個
SELECT t1.*
,t2.value
FROM table1 t1
LEFT JOIN
TableB t2
ON t1.id = t2.fk_id_setting
And t2.fk_id_entities=45
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.