我有
Update2 `Table1` AS T1 Inner Join `Table2` As T2
On T2.`Name` = T1.Name
Set T1.`ParentID` = T2.`ID`
我想先检查一下,在长周末后让大脑冻结,感谢帮助。
我基本上想先检查
Select FieldA, concat(FieldC,', ',FieldD) `Table1` AS T1 Inner Join `Table2` As T2
on T2.`Name` = T1.Name
Set T1.`ParentID` = T2.`ID`
以确保我得到正确的结果。