在网上看到的,记录下,实现多行多列更新
update table1 r
set(r.city,r.COUNTY,r.CELL_NAME,r.CELL_UK)
=
(select
m.company_name,m.COUNTY_NAME,m.cell_name,m.cell_uk
FROM table2 mwherem.flow_id=r.flow_id
)
whereexists(select1from table2 mwherem.flow_id=r.flow_id)
创建联合主键如下:
ALTER TABLE ADD CONSTRAINTS '约束名' PRIMARY KEY (COLUMN,COLUMN,...);
原文链接:https://www.f2er.com/oracle/213100.html创建联合主键如下:
ALTER TABLE ADD CONSTRAINTS '约束名' PRIMARY KEY (COLUMN,COLUMN,...);