锘??xml version="1.0" encoding="utf-8" standalone="yes"?>一级毛片在线播放,久久wwww,亚洲日本免费http://www.aygfsteel.com/yerenzyy/zh-cnMon, 04 Aug 2025 19:08:52 GMTMon, 04 Aug 2025 19:08:52 GMT60璇鋒暀錛氫負(fù)浣曟祻瑙堝櫒榪涗笉浜?jiǎn)缃戞槗锛?/title><link>http://www.aygfsteel.com/yerenzyy/archive/2008/09/26/231311.html</link><dc:creator>鍐朵漢</dc:creator><author>鍐朵漢</author><pubDate>Fri, 26 Sep 2008 07:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/yerenzyy/archive/2008/09/26/231311.html</guid><wfw:comment>http://www.aygfsteel.com/yerenzyy/comments/231311.html</wfw:comment><comments>http://www.aygfsteel.com/yerenzyy/archive/2008/09/26/231311.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yerenzyy/comments/commentRss/231311.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yerenzyy/services/trackbacks/231311.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.aygfsteel.com/yerenzyy/archive/2008/09/26/231311.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/yerenzyy/aggbug/231311.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yerenzyy/" target="_blank">鍐朵漢</a> 2008-09-26 15:54 <a href="http://www.aygfsteel.com/yerenzyy/archive/2008/09/26/231311.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>寰堜笉閿欑殑浠g爜錛堝湪Java JTable紿椾綋涓婃坊鍔犳棩鍘嗭級(jí)http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231074.html鍐朵漢鍐朵漢Thu, 25 Sep 2008 03:52:00 GMThttp://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231074.htmlhttp://www.aygfsteel.com/yerenzyy/comments/231074.htmlhttp://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231074.html#Feedback0http://www.aygfsteel.com/yerenzyy/comments/commentRss/231074.htmlhttp://www.aygfsteel.com/yerenzyy/services/trackbacks/231074.html闃呰鍏ㄦ枃

鍐朵漢 2008-09-25 11:52 鍙戣〃璇勮
]]>
澶勭悊PLSQL瑙i攣涓庡瘑鐮佷涪澶?/title><link>http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231072.html</link><dc:creator>鍐朵漢</dc:creator><author>鍐朵漢</author><pubDate>Thu, 25 Sep 2008 03:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231072.html</guid><wfw:comment>http://www.aygfsteel.com/yerenzyy/comments/231072.html</wfw:comment><comments>http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231072.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yerenzyy/comments/commentRss/231072.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yerenzyy/services/trackbacks/231072.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231072.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/yerenzyy/aggbug/231072.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yerenzyy/" target="_blank">鍐朵漢</a> 2008-09-25 11:44 <a href="http://www.aygfsteel.com/yerenzyy/archive/2008/09/25/231072.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java涓綆椾袱鏃ユ湡闂撮殧澶╂暟鐨勭畝鍗曠ず渚?/title><link>http://www.aygfsteel.com/yerenzyy/archive/2008/09/24/230931.html</link><dc:creator>鍐朵漢</dc:creator><author>鍐朵漢</author><pubDate>Wed, 24 Sep 2008 08:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/yerenzyy/archive/2008/09/24/230931.html</guid><wfw:comment>http://www.aygfsteel.com/yerenzyy/comments/230931.html</wfw:comment><comments>http://www.aygfsteel.com/yerenzyy/archive/2008/09/24/230931.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yerenzyy/comments/commentRss/230931.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yerenzyy/services/trackbacks/230931.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.aygfsteel.com/yerenzyy/archive/2008/09/24/230931.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/yerenzyy/aggbug/230931.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yerenzyy/" target="_blank">鍐朵漢</a> 2008-09-24 16:58 <a href="http://www.aygfsteel.com/yerenzyy/archive/2008/09/24/230931.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>sqlplus甯哥敤鍛戒護(hù)http://www.aygfsteel.com/yerenzyy/archive/2008/09/10/228188.html鍐朵漢鍐朵漢Wed, 10 Sep 2008 08:49:00 GMThttp://www.aygfsteel.com/yerenzyy/archive/2008/09/10/228188.htmlhttp://www.aygfsteel.com/yerenzyy/comments/228188.htmlhttp://www.aygfsteel.com/yerenzyy/archive/2008/09/10/228188.html#Feedback1http://www.aygfsteel.com/yerenzyy/comments/commentRss/228188.htmlhttp://www.aygfsteel.com/yerenzyy/services/trackbacks/228188.html 

1.鐧婚檰緋葷粺鐢ㄦ埛
sqlplus 鐒跺悗杈撳叆緋葷粺鐢ㄦ埛鍚嶅拰瀵嗙爜
鐧婚檰鍒殑鐢ㄦ埛
conn 鐢ㄦ埛鍚?/span>/瀵嗙爜;
2.鍒涘緩琛ㄧ┖闂?/span>
create tablespace 絀洪棿鍚?/span>
datafile 'c:"絀洪棿鍚?/span>' size 15M --琛ㄧ┖闂寸殑瀛樻斁璺緞,鍒濆鍊間負(fù)15M
autoExtend on next 10M --絀洪棿鐨勮嚜鍔ㄥ闀跨殑鍊兼槸10M
permanent online; --姘鎬箙浣跨敤
3.鍒涘緩鐢ㄦ埛
create user shi --鍒涘緩鐢ㄦ埛鍚嶄負(fù)shi
identified by scj --鍒涘緩瀵嗙爜涓?/span>scj
default tablespace 琛ㄧ┖闂村悕 --榛樿琛ㄧ┖闂村悕
temporary tablespace temp --涓存椂琛ㄧ┖闂翠負(fù)temp
profile default --鍙?/span>profile鏂囦歡鐨勯檺鍒?/span>
quota unlimited on 琛ㄧ┖闂村悕; --鍦ㄨ〃絀洪棿涓嬮潰寤鴻〃涓嶅彈闄愬埗
4.鍒涘緩瑙掕壊
create role 瑙掕壊鍚?/span> identified by 瀵嗙爜;
5.緇欒鑹叉巿鏉?/span>
grant create session to 瑙掕壊鍚嶏紱--緇欒鑹叉巿浜堝垱寤轟細(xì)璇濈殑鏉冮檺
grant 瑙掕壊鍚?/span> to 鐢ㄦ埛鍚嶏紱 --鎶婅鑹叉巿浜堢敤鎴?/span>
6.緇欑敤鎴鋒巿浜堟潈闄?/span>
grant create session,resource to shi;--緇?/span>shi鐢ㄦ埛鎺堜簣鎵鏈夋潈闄?/span>
grant create table to shi; --緇?/span>shi鐢ㄦ埛鎺堜簣鍒涘緩琛ㄧ殑鏉冮檺
7.select table_name from user_tables; 瀵熺湅褰撳墠鐢ㄦ埛涓嬬殑鎵鏈夎〃
8.select tablespace_name from user_tablespaces; 瀵熺湅褰撳墠鐢ㄦ埛涓嬬殑 琛ㄧ┖闂?/span>
9.select username from dba_users;瀵熺湅鎵鏈夌敤鎴峰悕縐板懡浠?/span> 蹇呴』鐢?/span>sys as sysdba鐧婚檰
10.鍒涘緩琛?/span>
create table 琛ㄥ悕
(
id int not null,
name varchar2(20) not null
)tablespace 琛ㄧ┖闂村悕 --鎵灞炵殑琛ㄧ┖闂?/span>
storage
(
initial 64K --琛ㄧ殑鍒濆鍊?/span>
minextents 1 --鏈灝忔墿灞曞?/span>
maxextents unlimited --鏈澶ф墿灞曞?/span>
);
11.--涓?/span>usrs琛ㄦ坊鍔犱富閿拰绱㈠紩
alter table users
add constraint pk primary key (ID);
12.涓哄凡緇忓垱寤?/span>users琛ㄦ坊鍔犲閿?/span>
alter table users
add constraint fk_roleid foreign key (roleid)
references role(role_id) on delete cascad; --涓嬭竟鍐欎富琛ㄧ殑鍒?/span>
on delete cascad鏄垱寤虹駭鑱?/span>
13.鎶婁袱涓垪榪炴帴璧鋒潵
select concat(name,id) from 琛ㄥ悕錛?/span> --鎶?/span>name鍜?/span>id榪炴帴璧鋒潵
14.鎴彇瀛楃涓?/span>
select column(name,'鏉?/span>') from 琛ㄥ悕錛?/span> --鎶?/span>name涓殑鏉?/span>’鍘繪帀
15.榪愯浜嬪姟涔嬪墠蹇呴』鍐?/span>
set serveroutput on; --鎵撳紑杈撳叆杈撳嚭錛堜笉鍐欑殑璇?/span>,鎵撳嵃涓嶅嚭淇℃伅錛?/span>
16.while鐨勫簲鐢?/span>
declare --澹版槑閮ㄥ垎
ccc number:=1; --澶嶈亴
a number:=0;
begin --浜嬪姟鐨勫紑濮?/span>
while ccc<=100 loop --寰幆
if((ccc mod 3)=0) then --鏉′歡
dbms_output.put_line(ccc||','); --鎵撳嵃鏄劇ず
a:=a+ccc;
end if; --緇撴潫if
ccc:=ccc+1;
end loop; --緇撴潫寰幆
dbms_output.put_line(a);
end; --緇撴潫浜嬪姟
/
17.select into 鐨勭敤娉?/span> --鍙兘澶勭悊涓琛岀粨鏋滈泦
declare
name varchar(30);
begin
select username into name
from users
where id=2;
dbms_output.put_line('濮撳悕涓猴細(xì)'||name);
end;
/
18.鍒╃敤%rowtype灞炴у彲浠ュ湪榪愯鏃舵柟渚跨殑澹版槑璁板綍鍙橀噺鍜屽叾浠栫粨鏋?/span>
Set serveroutput on;
Declare
utype users%rowtype;
Begin
Select * into utype from users where id=20;
Dbms_output.put_line('濮撳悕'|| utype.username);
Dbms_output.put_line('鐢熸棩'|| utype.brithday);
end;
/ --%rowtype鎯沖綋浜庡鍒朵竴涓〃
19.娓告爣鐨勫畾涔夊拰浣跨敤
Declare
Cursor ucur is select * from users; --澹版槑娓告爣
Us users%rowtype;--瀹氫箟涓庢父鏍囨兂鍖歸厤鐨勫彉閲?/span>
Begin
Open ucur;--鎵撳紑娓告爣
Fetch ucur into us;
While ucur %found loop --浣跨敤寰幆閬嶅巻娓告爣鐨勬煡璇㈢粨鏋?/span>
Dbms_output.put_line('濮撳悕錛?/span>'||us.username||'鐢熸棩'||us.brithday);
Fetch ucur into us;
End loop;
Close ucur; --鍏抽棴娓告爣
End;
=======================================
%found鍦ㄥ墠涓鏉$殑fetch璇彞鑷沖皯瀵瑰簲鏁版嵁搴撶殑涓琛屾椂錛?/span>%found灞炴у間負(fù)true錛屽惁鍒欎負(fù)false;
% notfound 鍦ㄥ墠涓鏉?/span>fetch璇彞娌℃湁瀵瑰簲鐨勬暟鎹簱琛屾椂錛?/span>%notfound灞炴у間負(fù)true錛屽惁鍒欎負(fù)false;
%isopen 鍦ㄦ父鏍囨墦寮鏃?/span>%isopen灞炴у間負(fù)true錛涘惁鍒欎負(fù)false;
%rowcount鏄劇ず榪勪粖涓烘浠庢樉紺烘父鏍囦腑鍙栧嚭鐨勮鏁?/span>

20.
鍒犻櫎
drop tablespace 絀洪棿鍚?/span> including contents; --鍒犻櫎琛ㄧ┖闂村拰閲岄潰鐨勫唴瀹?/span>
drop table 琛ㄥ悕 --鍒犻櫎琛?/span>
drop user 鐢ㄦ埛鍚?/span> --鍒犻櫎鐢ㄦ埛



鍐朵漢 2008-09-10 16:49 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 封丘县| 黄大仙区| 龙江县| 民勤县| 安仁县| 龙口市| 栾城县| 宁南县| 桦甸市| 武威市| 杭州市| 琼海市| 建湖县| 红安县| 商河县| 崇信县| 东乌珠穆沁旗| 宁都县| 留坝县| 宁武县| 庆安县| 高青县| 阿瓦提县| 玉环县| 博爱县| 石家庄市| 鸡东县| 阳曲县| 中宁县| 忻城县| 罗源县| 东乡| 华蓥市| 长寿区| 凤阳县| 达尔| 讷河市| 辽阳县| 永善县| 阿巴嘎旗| 新野县|