You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/09 11:22:30 UTC

[GitHub] [shardingsphere] 448700174 commented on issue #12315: left join result in cross table merge

448700174 commented on issue #12315:
URL: https://github.com/apache/shardingsphere/issues/12315#issuecomment-915997997


   the actual sql is :
   select i.id,i.operate_time,i.operator_name,group_concat("{\"k\":\"",d.option_name,"\",\"v\":\"",d.option_value, "\"}") options 
   		from care_task_12 t,care_task_item_12 i left join care_task_detail_21 d on d.task_item_id = i.id and d.tenant_id = ?
   		where i.task_id = t.id and t.enabled = 1 and t.done_count > 0 and i.enabled  = 1
   		and t.tenant_id = ?
   		and i.tenant_id = ?
   
   select i.id,i.operate_time,i.operator_name,group_concat("{\"k\":\"",d.option_name,"\",\"v\":\"",d.option_value, "\"}") options 
   		from care_task_12 t,care_task_item_12 i left join care_task_detail_22 d on d.task_item_id = i.id and d.tenant_id = ?
   		where i.task_id = t.id and t.enabled = 1 and t.done_count > 0 and i.enabled  = 1
   		and t.tenant_id = ?
   		and i.tenant_id = ?
   
   ...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org