UPDATE A,B
SET A.a = 'something'
WHERE A.b = B.b AND A.c = B.C;
I have this code inside a function in sql, but it doesn't work. I fill table B inside the function but first of all when I want to use it in the update above I get an Error like FROM Clause-B or something. And secondly a get an error for the comma next to A. What can I do instead of the code above? Does anybody knows where the problem is?