我需要一些帮助,我有以下查询:
SELECT
l.*,
d.*,
i.*,
DATE_FORMAT(l.date_created, '%d/%m/%Y') as date,
UNIX_TIMESTAMP(l.date_created) as ts,
DATE_FORMAT(d.date_deposit_made, '%d/%m/%Y') as date_deposit_made,
l.commission_introducer
FROM
tbl_client_commissions_log l
INNER JOIN
tbl_client_deposits d
INNER JOIN
tbl_initial_commissions i
ON
l.fk_deposit_id = d.pk_deposit_id AND i.fk_client_id = d.fk_client_id
WHERE
d.date_deposit_made BETWEEN ? AND ? AND l.system_fee = '0'
AND
l.fk_introducer_id = ?
ORDER BY ? LIMIT ? OFFSET ?
问题是当我设置一个 10 的限制和 0 的偏移量来启动它时。它只返回一行。
您如何对 2 个表之间的内部连接进行分页?
谢谢。