1
我得到这个错误的一部分,当我尝试更新表1的列就是喜欢表的列2Update语句:错误:目标表必须是等值连接谓词
目标表必须的一部分一个equijoin谓词。如下图所示
update test
set category = t1.category
from category_type t1, test t2
where t2.link ilike '%' || t1.type || '%'
and t2.link ilike '%.nike.com/%';
Category_Type表:
type category
sandals shoes
boots shoes
t-shirts apparel
-pants apparel
非常感谢您! – onlinetravel
试过了。但我仍然得到一个错误:关系“t1”不存在。 更新临时设置类别=从t1.category ( 选择c.category,从category_type C,温度吨 其中t.link ILIKE '%' || || c.type '%' 和T1 t.link .link ilike'%.nike.com /%' )t1 其中temp.link = t1.link; – onlinetravel
我会试着想出一个我可以在集群上运行的例子。 – systemjack