excel和oracle表資料的互動

2021-08-07 22:02:44 字數 572 閱讀 2571

--表的建立

create table zyc_test as select rownum id,customeren,projecttname from pms_prj_projects

--刪除無用的資訊

delete from zyc_test where id is null

--連表查詢

select a.*,b.username,b.useraccount,b.customeren,b.projecttname,b.important

from zyc_test a

left join pms_prj_projects b on a.projecttname=b.projecttname order by a.id

---更新表的資料

update pms_prj_projects set important='1' where projecttname in (select projecttname from zyc_test)

------從oracle表複製的資料 如果不適合插入excel** 可以現在txt文字 中轉一下  吧頭或尾不合適的資料去掉 在黏貼

Oracle通過Excel建立表

通過excel建立表,需要借助pl sql developer工具,做過oracle 資料庫開發的相信對這個工具不大陌生。1.使用pl sql developer登入資料庫,在tables上右鍵new,建立一張新錶 2.在excel中將表結構整理成以下格式 總共6列,注意備註之前一列為空即可 3.在...

Oracle 表和表資料恢復

對誤刪的表,只要沒有使用 purge 永久刪除選項,那麼基本上是能從 flashback table 區恢復回來的。資料表和其中的資料都是可以恢復回來的,記得 flashback table 是從 oralce 10g 提供的,一般步驟有 a.從 flashback table 裡查詢被刪除的資料表...

Oracle表和表資料恢復

oracle資料庫表及表資料的恢復 對誤刪的表,只要沒有使用 purge 永久刪除選項,那麼基本上是能從 flashback table 區恢復回來的。資料表和其中的資料都是可以恢復回來的,記得 flashback table 是從 oralce 10g 提供的,一般步驟有 a.從 flashbac...