SELECT
tod.id AS "id",
tod.user_id AS "fromUserId",
tod. STATUS AS "odStatus",
tod.created_at AS "createdAt",
tod.amount AS "amount",
tor.type AS "type",
tor. STATUS AS "orStatus",
tor.duration AS "duration"
FROM
t_order tod
Left JOIN t_order_request tor
ON
tor.id = tod.id
ORDER BY
tod.created_at DESC
LIMIT 20 OFFSET 0
上面就LEFT 改成 INNER 效率会提升很多???
left 0.5s左右,inner :5s左右,为什么???