hi i run this script ”
UPDATE t1
SET T1.col1= T2.col1
FROM aaa t1 ,
bbb t2
WHERE
T1.col2=138802
AND T1.col3 >=8800084 and T1.col3 <=8852884
AND T1.col4=0
AND T1.col5=T2.col2″
and i get syntax error !!! (ILLEGAL USE OF KEYWORD FROM)
how i can run this script???
hi i run this script UPDATE t1 SET T1.col1= T2.col1 FROM aaa t1 ,
Share
Here’s a modified version:
I isolated the T2 stuff in a subquery with an explicit SELECT. Note that the subquery will run for every row that is updated.