次のクエリを使用して2つのテーブルからデータを取得していますが、正常に動作しますが、さらに2つの平均4テーブルからも取得したい
$query = mysql_query("SELECT ml.UserID,ml.ContentAddedDateTime,cat.ContentType,cat.ContentTitle,cat.ContentSource,cat.ContentDescription
FROM LibraryMaster as ml
LEFT JOIN CatalogMaster cat ON cat.CatalogID=ml.CatalogID");
CategoryLookUp からカテゴリを取得し、SubCategoryLook から subCategoryTitle を取得したい
ここに CatalogMaster テーブルがあります
CatalogID int(11) No auto_increment
CategoryID int(11) No
SubCategoryID int(11) No
ContentType varchar(10) utf8_general_ci No
ContentTitle varchar(25) utf8_general_ci No
AddedByUserID int(11) No
ContentDescription varchar(250) utf8_general_ci Yes NULL
ContentSource varchar(250) utf8_general_ci No
ContentAddedDateTime
ここにCatgeoryLookUpがあります
CategoryID int(11) No auto_increment
CategoryTitle varchar(100) utf8_general_ci No
CategoryDescription varchar(250) utf8_general_ci Yes NULL
CategoryAddedByUserID int(11) No
CategoryAddedDateTime
これがSubCatLookUpです
SubCategoryID int(11) No auto_increment
LinkedCategoryID int(11) No
SubCategoryTitle varchar(100) utf8_general_ci No
SubCategoryAddedDateTime timestamp ON UPDATE CURRENT_TIMESTAMP No CURRENT_TIMESTAMP
SubCategoryAddedByUserID