<div dir="ltr"><div>How do I do an update on a join where the value is based on the joined table, e.g. something like</div><div><br></div><div>  UPDATE t1 <br></div><div>    SET t1.c1 = CONCAT(t1.c2, t2.c3)</div><div>  FROM</div><div>    t2</div><div>  WHERE <a href="http://t1.id">t1.id</a>=<a href="http://t2.id">t2.id</a> AND t2.c1 IS NULL;</div><div><br></div><div>I&#39;ve had trouble using DBIC and had to resort to a custom, hackish `update_from` method, but before I do any further work to turn it into a generic DBIC component for CPAN, is there already a way to do this with existing DBIC or add-ons for DBIC?<br></div><div><br></div><div>FWIW, I&#39;m using Postgres but as far as I know most databases handle UPDATE FROM syntax (with the exception of MySQL, unsurprisingly, which uses UPDATE JOIN).<br></div></div>