我目前正在尝试使用嵌套选择语句,但我的子查询正在生成NULL
值。我究竟做错了什么?
SELECT filmid,datetime,title,description,
(
SELECT name
FROM fec_client
WHERE filmid = 'fec_film.filmid'
),
(
SELECT rating_motivation
FROM fec_rating_report
WHERE filmid = 'fec_film.filmid'
)
FROM fec_film
ORDER BY datetime DESC