Excel使用技巧總結

2021-08-20 06:12:48 字數 2987 閱讀 7008

情景:

經理讓我總結乙份文件,需要用到資料庫的字段說明,我瞬間感覺日了狗了。

當我為可以一張表一張表粘(不用乙個字段乙個字段)而竊喜時,同事告訴我利用oracle 資料庫, 和 powerdisner 自帶工具生成的注釋可以整個庫一起複製貼上過去,瞬間我真的感覺日了狗了, 因為此時我已經粘了80多張表700多行花了3個小時,正在我為浪費的時間而心痛之際, 也在為我能夠自己忍受這種無聊的耐心而驚奇, 同時在想一定是負面情緒影響了我的想象力與智商。。。。

1、解決powerdisighner 生成的sql 不帶中文注釋的問題 (oracle 11g)

摘自:powerdesigner->tools->execute commands->edit/run scripts 

執行指令碼如下:

option   explicit     

validationmode = true

interactivemode = im_batch

dim mdl ' the current model

' get the current active model

set mdl = activemodel

if (mdl is nothing) then

msgbox "there is no current model "

elseif not mdl.iskindof(pdpdm.cls_model) then

msgbox "the current model is not an physical data model. "

else

processfolder mdl

end if

private sub processfolder(folder)

on error resume next

dim tab 'running table

for each tab in folder.tables

if not tab.isshortcut then

tab.name = tab.comment

dim col ' running column

for each col in tab.columns

if col.comment="" then

else

col.name= col.comment

end if

next

end if

next

dim view 'running view

for each view in folder.views

if not view.isshortcut then

view.name = view.comment

end if

next

' go into the sub-packages

dim f ' running folder

for each f in folder.packages

if not f.isshortcut then

processfolder f

end if

next

end sub

2、利用oracle 資料庫生成表名、字段說明、字段長度、與字段經度的 sql

select a.table_name,u.comments,a.comments,case when b.data_type = 'char' then '字串型別c'  when b.data_type = 'varchar2' then '字串型別c' when b.data_type = 'nvarchar2' then '字串型別c' when  data_type ='date' then '日期型別d' when data_type = 'number' then '整型i' when b.data_type = 'timestamp(6)' then '日期時間型t' else data_type end dsds,case when b.char_col_decl_length is null then case when data_precision is null then data_length else data_precision end else b.char_col_decl_length end lm,b.data_scale from user_col_comments a left join 

all_tab_columns b on a.table_name = b.table_name and b.column_name = a.column_name

left join user_tab_comments u on a.table_name = u.table_name

3、批量的進行excel的合併單元格

資料分組合併

4、在excel 中使用篩選的功能

資料-> 篩選

總結:1、工作中要多想我做的這種方式是不是最好的方式,有沒有更好的方式可以更快的完成任務, 然後可以不用加班回家該幹啥幹啥

2、工作中對於業務上的東西要多留心學習,記憶, 不懂時要虛心請教。

3、對許盟盟要好一點, 無論她怎麼對我,我都得像對待初戀一樣對她。

Excel使用技巧

1.在excel中進行斜線表頭的製作 先在某單元格中輸入 科目 alt enter鍵強制換行,輸入 姓名 2.在excel中,在數字和文字反覆出現的區域,專門複製其中的數字且相對位置不變?3.在excel中的幾種拖動單元格的方式和區別 1 普通拖動 我們先選中b3單元格 源單元格 滑鼠懸停在邊框上,...

excel 使用技巧

1.替換 2.excel中如何顯示固定位數,不足左邊補0 或者 右邊補0 3.excel如何在一列的所有值前面加t 插入一列 d列 在d2中輸入 t c2 滑鼠放在d2右下角,變成十字後下拉 4.excel中如何刪除一列的所有值前面的第乙個字母 5.excel如何比較a列中資料在b列中是否存在,如果...

Excel使用技巧

資料拆分 分列 資料行轉列 轉置 新增文字 concatenate 夏天 a1 計算比例 b2 b 98 代表不變的意思 普通求比例公式 e2 sum e2 e34 需要格式刷的比例公式 e2 sum e 2 e 34 資料條 直觀展示 先算出資料百分比,再條件格式,選擇資料條 條件格式 規則 選擇...