0
我有兩張表student(crn,age,name)和account(crn,account_id,fee)。我想獲得年齡小於20歲的學生的account_id。我如何在MySQL中做到這一點?在Mysql中加入兩個表並從新表中檢索記錄
我有兩張表student(crn,age,name)和account(crn,account_id,fee)。我想獲得年齡小於20歲的學生的account_id。我如何在MySQL中做到這一點?在Mysql中加入兩個表並從新表中檢索記錄
SELECT account_id, name, age
FROM student s inner join account a on s.crn = a.crn
where age < 20
選擇a.account_id 從學生小號 加入上s.crn = a.crn 帳戶一個其中年齡<20; – kimdasuncion12