update只能操作一个表,不能用inner join,因为update操作是逐行逐行的操作的:
update base_customers A set A.bankcardno=(select bankcardno from TEMP_import_no B where A.outid = B.outid)
update base_customers A
Set A.bankcardno=(select B.bankcardno
From TEMP_import_no B
where A.outid = B.outid)
楼主这是要达到什么效果,明显语法不对啊。
update base_customers A
Set A.bankcardno=(select B.bankcardno
From TEMP_import_no B
where A.outid = B.outid)
update base_customers A
Set bankcardno=(select B.bankcardno
From TEMP_import_no B
On A.outid = B.outid )
试试