[英]INSERT block of rows from a column from one table to another table
您可以使用这样的concat
函数通过update join
查询来完成此操作
update aktier
join aktie2 on aktie2.id = aktier.uid
set aktier.aktie2 = concat (aktier.aktie2, aktie2.aktie )
看到你的截图,看起来你正在寻找更新,而不是INSERT:
update aktier
set aktie2 = (select aktie from aktie2 where aktie2.datum = aktier.datum)
where aktie2 is null;
在你的场景中,它是一个更新案例而不是插入。
URPDATE aktier
SET aktie2 = (SELECT aktie FROM aktie2 where aktie2.id = aktier.id)
where aktie2 is null;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.