Files
ruoyi-java/sql/backfill_goods_info_preview.sql
2026-06-10 17:09:05 +08:00

8 lines
204 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 预览:待回填 goods_info 的订单号goods_info_id 为空)
SELECT DISTINCT order_id
FROM order_rows
WHERE goods_info_id IS NULL
AND order_id IS NOT NULL
ORDER BY order_time DESC
LIMIT 100;