cookieY / Yearning

🐳 A most popular sql audit platform for mysql
http://next.yearning.io/
GNU Affero General Public License v3.0
8.45k stars 1.98k forks source link

[Question] 使用临时表提示不存在 #1011

Open zhenglin305 opened 6 months ago

zhenglin305 commented 6 months ago

描述问题 清晰而简洁地描述你遇到的问题

复现 重现该行为的步骤: sql如下: update crm.crm_company_service_intentions ccsi join ( select from financedb.finance_product_company_relate where status = 2 group by company_id HAVING count() > 1 ) fpcr on fpcr.company_id = ccsi.company_id left join ( select ofunds.* from orderdb.order_funds ofunds join orderdb.orders o on o.id = ofunds.order_id where o.status in (7,8,9,10,11,15) order by ofunds.created_at desc limit 1 ) ofunds on ofunds.company_id = ccsi.company_id set ccsi.account_period_type = 3, ccsi.finance_product_id = IFNULL(ofunds.finance_product_id, fpcr.finance_product_id), ccsi.finance_days = IFNULL(ofunds.loan_limit, 60);

检测不通过:列'ofunds.loan_limit'表中不存在

截图

企业微信截图_b6040cd7-7c32-4339-b2b2-8a79d94322e7
Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] Using temporary table prompt does not exist