update字段中带select
UPDATE tb_report_type A INNER JOIN (SELECT LEVEL_CODE FROM tb_report_type WHERE id = 'ED894BE001CE4F47A2916287A491B4E1') B
SET A.LEVEL_CODE = CONCAT(B.LEVEL_CODE,'-',A.id) WHERE A.PARENT_ID = 'ED894BE001CE4F47A2916287A491B4E1'
平平淡淡开开心心 |
|
||
Copyright © 2024 程序媛鼓励师
Powered by .NET 9.0 on Kubernetes |