matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.79k stars 277 forks source link

[Feature Request]: select ... for update support join tables #13942

Open dengn opened 10 months ago

dengn commented 10 months ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

Example like below cannot work in MatrixOne as MO doesn's support select for join table update. 

SELECT t1.id, bill_no, stock_num, cur_position, in_time FROM t1 INNER JOIN t2 ON t1.reel_id = t2.reel_id WHERE t2.task_id IN (1739144656174305282)
AND t2.is_deleted = 0
AND t2.tenant_id = '000000'
AND t1.is_deleted = 0
AND t1.tenant_id = '000000' GROUP BY t1.id,bill_no,stock_num,cur_position,in_time FOR UPDATE

-- internal error: not support select from join table for update

Describe the feature you'd like

Follow mysql syntax and behavior.

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

allengaoo commented 1 month ago

暂未投入