You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
版本:kingshard1.6
PDO:
PDO::ATTR_EMULATE_PREPARES=false
PDO::ATTR_STRINGIFY_FETCHES => false
SQL:
select product_name as product_name, sum(if(cid_contact_id not in (3254,3256,3260,3262,3264,3266,3268), cost, 0)) as cost, sum(if(cid_contact_id in (3254,3256,3260,3262,3264,3266,3268), cost, 0)) as rebate_cost, sum(new_login_count) as new_login_count, null as login_unit_price, null as payment_rate, null as pay_unit_price, null as until_roi, sum(new_pay_people) as new_pay_people, sum(new_pay_sum_divide) as new_pay_sum_divide, null as until_profit from yd_super_report.data_report_day_cid where recdate >= '2023-02-01' and recdate <= '2023-02-28' group by product_name)
The text was updated successfully, but these errors were encountered:
使用hperf 查询构造使用时候出现这种情况。
版本:kingshard1.6
PDO:
PDO::ATTR_EMULATE_PREPARES=false
PDO::ATTR_STRINGIFY_FETCHES => false
SQL:
select
product_name
asproduct_name
, sum(if(cid_contact_id not in (3254,3256,3260,3262,3264,3266,3268), cost, 0)) ascost
, sum(if(cid_contact_id in (3254,3256,3260,3262,3264,3266,3268), cost, 0)) asrebate_cost
, sum(new_login_count
) asnew_login_count
, null as login_unit_price, null as payment_rate, null as pay_unit_price, null as until_roi, sum(new_pay_people
) asnew_pay_people
, sum(new_pay_sum_divide
) asnew_pay_sum_divide
, null as until_profit from yd_super_report.data_report_day_cid whererecdate
>= '2023-02-01' andrecdate
<= '2023-02-28' group byproduct_name
)The text was updated successfully, but these errors were encountered: