9 lines
218 B
SQL
9 lines
218 B
SQL
-- 预览:待回填 goods_info 的订单号(goods_info_id 为空)
|
|
SELECT order_id
|
|
FROM order_rows
|
|
WHERE goods_info_id IS NULL
|
|
AND order_id IS NOT NULL
|
|
GROUP BY order_id
|
|
ORDER BY MAX(order_time) DESC
|
|
LIMIT 100;
|