有人可以在这个微小的错误中帮助我吗?我写了这个,(这是行不通的),
SELECT sum(case when SD.order_id>0 then 1 else 0 end) as SD.customer_id
FROM tbl_order_lead_send_detail SD
但是,这个查询工作正常。
SELECT sum(case when order_id>0 then 1 else 0 end) as customer_id
FROM tbl_order_lead_send_detail