只要我避免WHERE stream_json ...
這是可以修復的,還是需要JOINS?SELECT cols,(SELECT inner query)AS innercol FROM table WHERE innercol something
SELECT id, stuff,
(SELECT count(*)
FROM inner_table
WHERE inner_table.movie_id = outer_table.id)
AS stream_json
FROM outer_table
WHERE stream_json != 0
你的問題到底是什麼? –
@dianuj這可以修復嗎?還是需要連接? –