當我運行下面的MySQL語句中,我得到127行返回之間IDS:尋找失蹤MySQL表
SELECT t.strat_id, t.candle_id, t.spot_entry, t.spot_close, t.f,t.fa,t.b,t.we,t.direct,t.date_created,t.date_closed,t.notes,t.results
FROM cp_user_trades AS t
INNER JOIN candles2 AS c
ON t.candle_id = c.id
WHERE t.user_login = "user"
AND t.active=0
AND t.deleted=0
ORDER BY t.date_closed DESC
當我刪除了INNER JOIN
我得到131行返回:
SELECT t.strat_id, t.candle_id, t.spot_entry, t.spot_close, t.f,t.fa,t.b,t.we,t.direct,t.date_created,t.date_closed,t.notes,t.results
FROM cp_user_trades AS t
WHERE t.user_login = "user"
AND t.active=0
AND t.deleted=0
ORDER BY t.date_closed DESC
我怎樣才能SELECT
4行不會在第一條語句中返回?
謝謝!
完美,謝謝。將接受5。 – themerlinproject