stock 相当于 as stock
$subQuery 出来的sql语句是
( SELECT user_id
,balance
FROM yoshop_user_stock_log
WHERE type
= 1 AND create_time
BETWEEN 1626883200 AND 1648915200 ORDER BY create_time
DESC )
构造出子查询后可以正常使用Db方法进行处理了
创作不易 给个赞把
stock 相当于 as stock
$subQuery 出来的sql语句是
( SELECT user_id
,balance
FROM yoshop_user_stock_log
WHERE type
= 1 AND create_time
BETWEEN 1626883200 AND 1648915200 ORDER BY create_time
DESC )
构造出子查询后可以正常使用Db方法进行处理了
创作不易 给个赞把