-1
我得到這個問題:MySQL錯誤:違反:1052列 'created_at' 在where子句是模糊的
完整性約束違規:1052列 'created_at' 在where子句是模糊的
但表sales_flat_order_grid
有created_at
列
SELECT DISTINCT main_table.*,
blacklist.entity_id AS marked
FROM sales_flat_order_grid AS main_table
LEFT JOIN (SELECT main_table.*
FROM plugincompany_blacklist_item AS main_table
WHERE (order_id != '0')
GROUP BY order_id) AS blacklist
ON main_table.entity_id = blacklist.order_id
WHERE (created_at >= '2016-11-03 00:00:00'
AND created_at <= '2016-11-26 23:59:59')
感謝您的幫助 –
感謝,我添加了一個表名和clearify我們將要使用哪個表。 –