我想在一個語句中執行這些查詢: - 如何TO?查詢,獲得結果再次查詢
SELECT count(id) as levela FROM `member` where parent_id in (SELECT id FROM `member` where parent_id in (SELECT id FROM `member` where parent_id = 2))
SELECT count(id) as levelb FROM `member` where parent_id in (SELECT id FROM `member` where parent_id = 2)
SELECT count(id) as levelb FROM `member` where parent_id = 2
所以有什麼問題? –
@JurijJazdanov如何做到這一點????????????????????????/ –
你想從所有3個查詢中得到總數? –