1、匯入匯出命令
imp userid=kpidev/kpidev@performance file=c:/1.dmp log=c:/1.log ignore=yes buffer=1024 fromuser=kpi10 touser=kpidev
exp userid=kpidev/kpidev@performance file=c:/1.dmp tables=(pro_user) whereclause=''--???
注意:ignore=yes表示的是不是還要建立表
2、時間函式
--本季度第一天
trunc(sysdate,'q')
--本月第一天
trunc(sysdate,'mm')
--本月最後一天
last_day(sysdate)
add_months(sysdate,1)
--日期相減 得到天數
sysdate-date'2010-01-01'
3、遞迴用法
start with org_num='root'
--找出上級機構
connect by prior upper_org_num=org_num
或者connect by org_num =prior upper_org_num
--找出下級機構
connect by prior org_num=upper_org_num
select connect_by_root org_num,level,connect_by_isleaf, bpm_org.* from bpm_org
start with org_num='team1'
connect by org_num = prior upper_org_num
根節點 connect_by_root, connect_by_isleaf, connect_by_cycle
4、如何在linux環境下啟動監聽服務和資料庫
oracle 常用命令語句
grant to user 給user賦予 許可權 rovoke from user sql plus connect user pass sid as sysdba select from all objects where owner 檢視 的所有物件 select drop object na...
Docker 複習 常用命令 待續
docker 命令 docker container ls a q remove all containers docker image ls a list all images on this machine docker image rm remove specified image from ...
Oracle 常用命令
1 檢視當前所有物件 sql select from tab 2 建乙個和a表結構一樣的空表 sql create table b as select from a where 1 2 sql create table b b1,b2,b3 as select a1,a2,a3 from a whe...