SELECT
COUNT(*)
FROM
tbl_department
RIGHT JOIN tbl_video
ON tbl_video.department_id = tbl_department.department_id
LEFT JOIN tbl_language
ON tbl_language.language_id = tbl_video.video_language
WHERE tbl_video.department_id LIKE '%1%'
我已經嘗試過
SELECT
COUNT(*)
FROM
tbl_department
RIGHT JOIN tbl_video
ON tbl_video.department_id = tbl_department.department_id
LEFT JOIN tbl_language
ON tbl_language.language_id = tbl_video.video_language AS numbers
WHERE tbl_video.department_id LIKE '%1%'
,但它不工作。 幫助請輸入。
你想做些什麼? – xdazz
雖然我們可以猜測,但我們不知道您要做什麼,也不知道您爲什麼認爲簡單的谷歌搜索不會對您有所幫助。 – Strawberry
爲什麼標記爲[tag:sql-server]以及[tag:mysql] - 您是否在使用這兩個數據庫系統? –