0
我從一些表中獲得價值的問題。你可以看到下面的圖片,我想用紅色來排列我所阻擋的東西。 從INNER JOIN獲取價值3表中每個表的最新記錄
我嘗試用下面的代碼
SELECT p.id,
p.email,
p.name,
p.lastname,
p.gender,
ex.startwork,
ex.endwork,
e.degree,
e.majority,
j.division
FROM job_jobseeker AS p
INNER JOIN job_experience AS ex
ON p.email = (SELECT ex.email
FROM job_experience
ORDER BY ex.id DESC
LIMIT 1)
INNER JOIN job_education AS e
ON p.email = (SELECT e.email
FROM job_education
ORDER BY ex.id DESC
LIMIT 1)
INNER JOIN job_applying AS j
ON p.email = (SELECT j.email
FROM job_applying
ORDER BY ex.id DESC
LIMIT 1)
我編輯了一些您的代碼,但它的工作原理...感謝您的高級 – bramadwitra