目前,我有这个 SQL 查询来尝试从以下位置获取信息collection_actors
:
SELECT ca.id_imdb AS IMDb_ID,
caat.id_collection AS collection_ID,
ca.data_name AS actors_name
FROM collection_actors AS ca
JOIN collection_actors_assignedto AS caat
ON ca.id_imdb = caat.id_collection
WHERE caat.id_collection = 'tt1104001'
这是两个表的数据库:
collection_actors
id
id_user
id_imdb
data_name
date_birth
date_added
date_edited
information_ipaddress
collection_actors_assignedto
id
id_user
id_actor
id_collection
date_added
information_ipaddress
问题是我根本无法从中获取任何信息collection_actors
,即使有与 IMDb ID 匹配的数据!我怎样才能让它工作?