Excel 数据 刷到Oracle数据库
先SQL查询表名
SELECT * from 表 for update ;
把锁打开 , 然后复制Excel的数据项 , 往数据库拷贝 , 点击保存 , 然后 在提交事务
--DROP TABLE ZZSYD_TMP; --建立临时表 create table ZZSYD_TMP ( XH NVARCHAR2(32), ZZSYDBH NVARCHAR2(32), CRENAME NVARCHAR2(64), KHMC NVARCHAR2(64) ) ; comment on table ZZSYD_TMP is '织造试样单'; comment on column ZZSYD_TMP.ZZSYDBH is '织造试样单编号'; --ALTER TABLE ZZSYD_TMP ADD KHMC NVARCHAR2(32); --写数据 SELECT XH,ZZSYDBH FROM ZZSYD_TMP FOR UPDATE ; --更新 update ZZSYD_TMP a set (CRENAME,KHMC)=(select CRENAME,KHMC b from T_JS_SYGL_ZZSYD b where a.zzsydbh=b.zzsydbh); select * from ZZSYD_TMP order by to_number(xh);