这是Informix更新的正确语法吗?
update table1 set table1.code = 100 from table1 a, table2 b, table3 c where a.key = c.key a.no = b.no a.key = c.key a.code = 10 b.tor = 'THE' a.group = 4183 a.no in ('1111','1331','1345')
我收到通用-201“发生语法错误”消息,但看不到出了什么问题。
您的语法错误是table1.code
set table1.code = 100
改成
set a.code = 100
完整的代码
update table1 set a.code = 100 from table1 a, table2 b, table3 c where a.key = c.key and a.no = b.no and a.key = c.key and a.code = 10 and b.tor = 'THE' and a.group = 4183 and a.no in ('1111','1331','1345')