锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 琛ㄧ粨鏋勶細 create table TB_ORG SQL> select orgid,ORGPARENT from tb_org order by ORGid desc; ORGID ORGPARENT sjgt newsroom --瀛愬彇鐖?br />select * from tb_org CONNECT BY PRIOR orgparent=orgid START WITH orgid='newsroom' 娉ㄦ剰orgid=orgparent 鍜宱rgparent=orgid 1. 澶嶅埗琛ㄧ粨鏋勫強鍏舵暟鎹細 create table table_name_new as select * from table_name_old 2. 鍙鍒惰〃緇撴瀯錛?/p> create table table_name_new as select * from table_name_old where 1=2; 鎴栬咃細 create table table_name_new like table_name_old 3. 鍙鍒惰〃鏁版嵁錛?/p> 濡傛灉涓や釜琛ㄧ粨鏋勪竴鏍鳳細 insert into table_name_new select * from table_name_old 濡傛灉涓や釜琛ㄧ粨鏋勪笉涓鏍鳳細 insert into table_name_new(column1,column2...) select column1,column2... from table_name_old
(
ORGID VARCHAR2(50) not null,
ORGNAME VARCHAR2(100),
ORGPARENT VARCHAR2(50),
)
----------------- --------------------------------------------------
top_org
newsroom top_org
bgjsyj newsroom
bgjs newsroom
test52 bgjsyj
test36 bgjsyj
test3 bgjs
test2 sjgt
test1 sjgt
tes4t1 bgjs
-----瀛愬彇鐖跺彉褰?錛堬級
select * from tb_org CONNECT BY PRIOR orgparent=orgid START WITH orgparent='newsroom'
--鐖跺彇瀛愶紙緇撴灉涓病鏈夌埗榪欐潯璁板綍錛?br />select * from tb_org CONNECT BY PRIOR orgid=orgparent START WITH orgparent='newsroom'
-----鐖跺彇瀛愬彉褰紙澶氫簡鐖惰繖涓綰э級
select * from tb_org connect by prior orgid=orgparent start with orgid ='newsroom'
ref:http://blog.csdn.net/kenny1985/article/details/3980583
]]>
Ref:http://www.cnblogs.com/youxinqiang/archive/2008/12/26/1363030.html
]]>
鍦ㄤ綘瀹氫箟鐨勫煙涓彲浠ユ壘鍒板涓嬪懡浠わ細
/[youHome]/domains/[yourDomain]/startWebLogic.sh
/[youHome]/domains/[yourDomain]/stopWebLogic.sh
鍚姩weblogic錛屽彲浠ュ弬鑰冨涓嬪懡浠わ細
nohup ./startWebLogic.sh &
鏌ョ湅鍚庡彴錛坣ohup 浼氬湪褰撳墠鐩綍涓嬬敓鎴愪竴涓猲ohup.out鏂囦歡浣滀負杈撳嚭錛?
tail -f nohup.out
鎴栬咃細 nohup ./startWebLogic.sh >鏃ュ織鏂囦歡鍚?&
鏌ョ湅鍚庡彴 tail -f 鏃ュ織鏂囦歡鍚?
鍏抽棴weblogic錛屾垜浠洿鍊懼悜浜庣洿鎺ユ潃鎺墂eblogic榪涚▼錛?
ps -ef|grep java
鏌ユ壘鍒拌繘紼婭D涔嬪悗錛岀洿鎺ヨ繍琛屽涓嬪懡浠わ細
kill -9 ID
Ref:http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0822/12969.html
]]>
璇彞褰㈠紡涓猴細Insert into Table2(field1,field2,...) select value1,value2,... from Table1
瑕佹眰鐩爣琛═able2蹇呴』瀛樺湪錛岀敱浜庣洰鏍囪〃Table2宸茬粡瀛樺湪錛屾墍浠ユ垜浠櫎浜嗘彃鍏ユ簮琛═able1鐨勫瓧孌靛錛岃繕鍙互鎻掑叆甯擱噺銆傜ず渚嬪涓嬶細
2.SELECT INTO FROM璇彞
璇彞褰㈠紡涓猴細SELECT vale1, value2 into Table2 from Table1
瑕佹眰鐩爣琛═able2涓嶅瓨鍦紝鍥犱負鍦ㄦ彃鍏ユ椂浼氳嚜鍔ㄥ垱寤鴻〃Table2錛屽茍灝員able1涓寚瀹氬瓧孌墊暟鎹鍒跺埌Table2涓?/font>銆傜ず渚嬪涓嬶細