我們的用戶表有一個域,域表有一個類似的名為域的列,所以我可以加入。但是在我們的域表中有一列suspended表示該域是否被暫停。如果域表上的 domain.suspended 為 1,如何在用戶表中顯示我的所有用戶?
SELECT *
FROM core.users,core.domain
WHERE core.domain.domain = core.users.domain;
uj5u.com熱心網友回復:
select *
from core.users
inner join core.domain on core.domain.domain=core.users.domain
where core.domain.suspended=1;
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/534872.html
上一篇:SQL-來自單獨表的派生列
下一篇:將數字串列作為字串轉換為單個整數
