On 2/16/2017 6:25 PM, Patrick B wrote:
UPDATE test1 SET test1.id_user_bill = test2_results.recent_id FROM test2_results WHERE test1.id_user_bill = test2_results.item_id; (at least if I interpret what you're asking correctly, there's
some errors there, for instance, there's no such field as test2.id
shown, and the schema of test2_results is undefined, too) 'from' works very much like a INNER JOIN, and the WHERE clause
has to include the join condition. -- john r pierce, recycling bits in santa cruz |