锘??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-绱澏鈭忛鎻氣啑http://www.67529968.com/algz/Purple Butterfly Flying QQ缇?7101519 Flex,Ext,Spring,Hibernate,EOS,SpringSecurity,Struts http://algz.googlecode.com/svn/trunk/zh-cnWed, 20 Feb 2019 07:59:30 GMTWed, 20 Feb 2019 07:59:30 GMT60Java鍙戦乭ttp璇锋眰 (get 涓?post鏂规硶璇锋眰)http://www.67529968.com/algz/articles/412732.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Mon, 21 Apr 2014 05:24:00 GMThttp://www.67529968.com/algz/articles/412732.htmlhttp://www.67529968.com/algz/comments/412732.htmlhttp://www.67529968.com/algz/articles/412732.html#Feedback0http://www.67529968.com/algz/comments/commentRss/412732.htmlhttp://www.67529968.com/algz/services/trackbacks/412732.html闃?#29831;诲叏鏂?/a>

绱澏鈭忛鎻氣啑 2014-04-21 13:24 鍙戣璇勮
]]>
鍙嶅皠鐢熸垚绗旇http://www.67529968.com/algz/articles/404420.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 25 Sep 2013 07:40:00 GMThttp://www.67529968.com/algz/articles/404420.htmlhttp://www.67529968.com/algz/comments/404420.htmlhttp://www.67529968.com/algz/articles/404420.html#Feedback0http://www.67529968.com/algz/comments/commentRss/404420.htmlhttp://www.67529968.com/algz/services/trackbacks/404420.html
//*********鍒涘缓瀹炰緥***********
Type t = typeof(ClassTest);//琛?#32448;?#32491;诲瀷澹版槑锛?#32491;?#32491;诲瀷銆?#37818;?#37721;?#32491;诲瀷銆佹暟缁?#32491;诲瀷銆佸?#32491;诲瀷銆佹灇涓?#32491;诲瀷銆佺?#35826;瀷鍙傛暟...銆?/span>
object obj = Activator.CreateInstance(t);//閫氳繃鍙嶅皠鍒涘缓瀵硅薄瀹炰緥,濡傛灉鏄潤鎬佺?#35826;垯涓?#26916;诲?#28848;緥?#23538;
//obj = ass.CreateInstance("ReflectionTest.ClassTest"); //绫?#37928;?#37711;檺瀹?#37722;?鍛?#37722;?#32460;洪棿.绫诲悕
//*********鍒涘缓鍜?#29835;冪敤鏂规硶***********
MethodInfo method = t.GetMethod("WriteString"); //鎼?#32497;?#37711;锋湁鎸?#28729;?#37722;嶇鐨?#37711;?#37711;?#37826;规硶銆?/span>
String s = (String)method.Invoke(obj, new Object[] { "123" });//鍙嶅皠绫?#37928;?#28725;硅薄瀹炰緥,鏂规硶鍙傛暟 
//?#28516;鎬?#37826;规硶         
method = type.GetMethod("StaticWriteString");
method.Invoke(nullnew string[] { "test" }); //濡傛灉鏄潤鎬?#37826;规硶,绗?涓?#37721;傛暟?#22447;蹇界暐,璁?#28051;簄ull  
 
//鏃?#37721;?#37928;勯潤鎬?#37826;规硶
method = type.GetMethod("NoneParaWriteString");  
method.Invoke(nullnull);//鏃?#37721;傚垯绗?涓?#37721;傛暟璁?#28051;簄ull.
 
System.Diagnostics.Trace.WriteLine(s);//杈撳嚭鍒?璋?#29831;?-绐?#37721;?-鍗虫椂绐?#37721;?
 
C#鍙嶅皠瀛範?#26882;?#22161;鐐规敞鎰忓唴瀹?#38171;?/span>
1锛?#37816;?#28729;?#32491;诲簱鏂?#28000;跺繀椤讳娇?#25956;缁?#28725;硅矾寰?#38171;?#28051;嶈兘?#23047;?#25956;鐩?#28725;硅矾寰?#38171;?#37711;?#28729;?#37808;?#29785;?#37832;?#37904;?#28051;?#37722;堢悊锛?#28051;嶅鏂?#28186;?#38171;?/span>
3锛?#32471;?琛屽?#20635;灉鍙嶅皠鐨?#32491;讳娇?#25956;鐨勬槸?#28516;鎬?#37826;规硶,?#22447;绗?涓?#37721;傛暟椤?#29835;?#28051;簄ull銆?/span>
4锛?#37922;?#27996;?#26473;?#28051;?#37826;规硶鏈?#28051;?#28051;?#37721;傛暟锛?#37721;互?#25956;杩欑Object鐨?#37826;规硶鎸?#28729;?#37721;傛暟?#31683;鍙互?#27967;鎺?#37712;檓ethod.Invoke(obj, new Object[] { "test", 1 });
5锛?#29835;冪敤鐨?#37826;规硶鏄?#28051;涓潤鎬?#37826;规硶锛?#26473;欐椂鍊橧nvoke鐨勬椂鍊?#38171;屽浜?#32471;?#28051;涓?#37721;傛暟鏄?#37827;?#29785;?#37928;?#38171;屼篃灏?#37828;垜浠?#37712;?#28000;涔堥兘涓嶄細琚?#29835;冪敤锛屽?#20805;娇?#22428;浠?#38341;?#28186;new浜?#28051;涓猘ny杩欐牱鐨凮bject锛屽綋鐒?#26473;欑?#23941;?#27408;硶鏄?#28051;?#37818;?#38013;?#37928;?#37510;?#28003;?#37828;?#28725;?#25652;斿湪?#32229;瀛?绉嶆垜浠?#28641;傛灉Invoke鐨勬椂鍊欑敤浜?#32491;诲瀷涓?#28051;鑷?#37928;?#28729;炰緥鏉仛涓?#37721;傛暟鐨?#29831;?#38171;屽?#21973;細瀵?#38007;?#28051;涓?#26473;?#29723;屾椂鐨勯敊璇?#37510;?/span>
6锛?#32471;?#28051;?#28051;緥瀛?#37828;?#28051;涓?#29835;冪敤鏃?#37721;傛暟?#28516;鎬?#37826;规硶鐨勪緥瀛?#38171;?#26473;欐椂鍊?#28051;?#28051;?#37721;傛暟?#22428;浠兘涓嶉渶瑕佹寚瀹?#38171;岀敤null灏?#37721;互浜?#37510;?/span>
鍐?#29831;?#28051;涓棶棰?#38171;屽?#20635;灉璋冪敤鐨?#32491;?#37828;潤鎬佺被鐨勬椂鍊?#38171;岄渶瑕佹敞鎰?#28051;涓棶棰?#38171;岃偗瀹氭垜浠細?#20802;鍒?#28051;涓棶棰?#38171;岄潤鎬佺被鏄?#28051;嶈兘瀹炰緥?#23538;鐨?#38171;?#26473;欐椂鍊?#38171;?1琛?#37928;?#32491;?#37928;?#28729;炰緥?#23538;鐨?#37826;规硶?#22428;浠?#28751;?#28051;嶉渶瑕?#27996;?#38171;岀洿鎺娇?#25956;Invoke灏?#37721;互瀹?#37916;?#38171;屽惁?#22447;灏嗕細?#22189;鐜?#26473;?#29723;屾椂鐨勯敊璇?#38171;屽?#23678;牱鐨勯?#25782;悊锛?#32471;?#28051;涓?#37721;傛暟灏嗕細琚?#37827;?#29785;?#38171;?#37721;?#29781;佹垜浠?#28028;?#28725;?#27996;?#37721;傛暟灏?#37721;互浜?#37510;?/span>


绱澏鈭忛鎻氣啑 2013-09-25 15:40 鍙戣璇勮
]]>
JAVA璇?#29815;___鏂?#28000;?#28051;嬭?#34249;?#29115;兘妯?#37833;?http://www.67529968.com/algz/articles/396077.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 05 Mar 2013 06:11:00 GMThttp://www.67529968.com/algz/articles/396077.htmlhttp://www.67529968.com/algz/comments/396077.htmlhttp://www.67529968.com/algz/articles/396077.html#Feedback0http://www.67529968.com/algz/comments/commentRss/396077.htmlhttp://www.67529968.com/algz/services/trackbacks/396077.htmlJS:
{
text : '涓嬭浇瀵?#37711;?#22959;?#37833;?,
iconCls : 'Import',
handler : function() {
window.location.href="../BuinessPlanDownloadServlet";
}
}
java:
package com.sysware.customize.hd.investment.productionMaterialsManagement.buinessPlan;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class BuinessPlanDownServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
this.doPost(request, response);
}
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String filePath = request.getSession().getServletContext().getRealPath("")+ File.separator+ "template.files"+ File.separator+ "buinessPlanDown" + File.separator + "buinessPlanTempl.xls";
response.reset();
response.setCharacterEncoding("UTF-8");
File file = new File(filePath);
if (!file.exists()) {
PrintWriter out = response.getWriter();
out.print("{failure:true}");
return;
}
response.setContentType("application/x-msdownload");
response.setHeader("Content-Disposition", "attachment;filename="+ new String(file.getName().getBytes("gb2312"), "iso8859-1"));
ServletOutputStream out = response.getOutputStream();
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(filePath));
BufferedOutputStream bos = new BufferedOutputStream(out);
byte[] buff = new byte[2048];
int bytesRead;
while (-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
bos.write(buff, 0, bytesRead);
}
if (bis != null) {
bis.close();
}
if (bos != null) {
bos.flush();
bos.close();
}
}
}


绱澏鈭忛鎻氣啑 2013-03-05 14:11 鍙戣璇勮
]]>
[杞琞hibernate?#31651;鐢熸垚鐨?#37724;岄?#27199;鐨勫睘鎬?#37706;??#23047;?#25956;generated鍒锋柊瀹炰綋)http://www.67529968.com/algz/articles/395824.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 28 Feb 2013 01:55:00 GMThttp://www.67529968.com/algz/articles/395824.htmlhttp://www.67529968.com/algz/comments/395824.htmlhttp://www.67529968.com/algz/articles/395824.html#Feedback0http://www.67529968.com/algz/comments/commentRss/395824.htmlhttp://www.67529968.com/algz/services/trackbacks/395824.html闃?#29831;诲叏鏂?/a>

绱澏鈭忛鎻氣啑 2013-02-28 09:55 鍙戣璇勮
]]>
CENTOS 绠浠嬪?#23684;?#28355;儚涓嬭浇http://www.67529968.com/algz/articles/394336.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 17 Jan 2013 01:41:00 GMThttp://www.67529968.com/algz/articles/394336.htmlhttp://www.67529968.com/algz/comments/394336.htmlhttp://www.67529968.com/algz/articles/394336.html#Feedback0http://www.67529968.com/algz/comments/commentRss/394336.htmlhttp://www.67529968.com/algz/services/trackbacks/394336.html涓銆丆ENTOS涓嬭浇鍚勫浗闀滃?#24531;?#26495;潃

http://www.centos.org/modules/tinycontent/index.php?id=32

浜?#37510;?#28051;?#37733;藉闄?#38336;滃?#24539;儴鍒?/h2>

China CMCC Taian Branch锛?#23049;?#28729;?#32457;诲姩锛?/p>

http://mirrors.ta139.com/centos/

China NetEase锛?63缃?#37828;?#38171;?/p>

http://mirrors.163.com/centos/

China Northeastern University, Shenyang Liaoni锛?#28051;滃?#26944;瀛?#38171;?/p>

http://mirror.neu.edu.cn/centos/

China Sohu Inc, Beijing P.R. China锛?#37820;滅?#24588;entOS闀滃儚锛?/p>

http://mirrors.sohu.com/centos/

China Star Studio of UESTC锛?#37922;?#28699;?#32457;戞妧澶?#38171;?/p>

http://mirrors.stuhome.net/centos/

China University of Science and Tech of China锛?#28051;?#32457;?#28598;?#38171;?/p>

http://centos.ustc.edu.cn/centos/

姝?#28598;?#38171;?#26473;?#37832;夐?#27408;銆?#37721;版?#32156;entOS闀滃?#24531;?#26495;潃?#31683;寰?#36423;?#38171;屽叿浣?#37721;?#29785;?#28051;?#37826;?#28729;?#37826;?#32515;戦锛?#37820;?#32497;Hong Kong鎴朤aiwan銆?/p>

涓?#37510;丆entOS鍏嶈垂杩?#37828;?#37824;惰垂鐨?#38171;?/h2>

鍙傜収銆?a style="color: rgb(16, 92, 182); text-decoration: underline;" href="http://hi.baidu.com/michael7768/blog/item/daefc825998da87234a80f84.html" target="_blank">CentOS 绠鍗?#28000;?#32513;?#38171;centos瀹屽叏鍏嶈垂銆乺edhat鍟?#28051;?#37832;嶅姟鏄?#29781;佹?#22549;挶鐨?/a>銆?#28051;鏂?#29831;存硶锛?/p>

“CentOS 骞?#28051;?#37722;戠敤鎴?#37819;?#28186;涘晢涓氭敮鎸?#38171;屽綋鐒朵篃涓嶈礋涓?#28000;讳綍鍟?#28051;氳矗浠?#37510;?#8221;锛屾墍?#20114;锛?/p>

CentOS鍚勭増鏈郴缁熼兘鏄?#37711;嶈垂涓嬭?#34249;?#23676;娇?#25956;鐨?#38171;屼絾鏄?#29781;佽幏寰?#37824;?#37816;佹垨鑰呮煇浜涘畾鍒惰蒋浠?#38171;屼篃鍙兘鏄渶?#30512;锛屽垯瑕?#28000;樿垂銆?/strong>

鍥?#37510;丆entOS LiveCD銆丩iveDVD鍜孊inDVD鍖?#37714;湪?#25698;閲?#38171;?/h2>

BinDVD?#22679;——灏?#37828;?#37829;?#38315;?#28729;?#29761;呯増锛岄渶瀹?#29761;?#37714;?#29825;?#32480;?#37832;虹鐩樻?#23944;?#30028;敤锛bin涓鑸兘姣旇緝澶?#38171;岃?#28051;斿寘鍚?#28598;?#38322;?#37928;勫父?#25956;杞?#28000;?#38171;屽畨瑁呮椂鏃犻渶鍐嶅湪绾?#28051;嬭浇锛堝?#20788;鍒嗘儏鍐?#38171;?#37510;?/p>

LiveDVD?#22679;——灏?#37828;?#28051;涓?#37711;?#37929;楥entOS?#37108;缁?#38171;?#37721;?#38315;氳繃鍏?#37929;?#37722;?#37716;?#37922;佃剳锛屽惎鍔嚭CentOS?#37108;缁?#38171;屼篃鏈?#37733;?#35120;晫闈?#38171;屼篃鏈?#32513;堢銆備篃鍙互瀹?#29761;?#37714;?#29825;?#32480;?#37832;?#38171;屼絾鏄?#37832;?#27996;涘唴瀹?#37721;兘杩橀渶瑕佸?#23942;鍒?#32515;戠珯涓嬭浇锛堣嚜鍔?#38171;?#37510;?/p>

LiveCD?#22679;——鐩?#23011;LiveDVD鏄?#28051;?#32494;剧畝鐨?#37711;?#37929;楥entOS?#37108;缁?#37510;?#28003;?#32457;洿灏?#38171;屼究浜?#32513;存姢?#23047;?#25956;銆?/p>

姝?#28598;?#38171;?#26473;?#37832;?#28051;洿Mini鐨凜entOS?#37108;缁熺増鏈?#38171;?#28051;?#37826;?#28051;?#37928;凜entOS-6.0-i386-minimal.iso灏?#37828;?#38171;屽啀涓?#38344;?#37928;勬槸缃?#32513;?#28729;?#29761;呯増锛屼?#29363;噦鐨?#38171;岃偗瀹?#38341;剧敤銆?/p>

鍚?#29831;?#38171;?/strong>

SRPMS——Source RPM

RPM——Red Hat Package Manager

?#27967;澶?#37721;傝?#38171;?/strong>

瀹?#37826;?#28051;?#26916;? http://www.centos.org/

閭?#28000;?#37714;?#29723;? http://www.centos.org/modules/tinycontent/index.php?id=16

璁哄潧: http://www.centos.org/modules/newbb/

鏂囨: http://www.centos.org/docs/

Wiki: http://wiki.centos.org/

闀滃儚鍒?#29723;? http://www.centos.org/modules/tinycontent/index.php?id=32



-------------------------------------------------------------------------------------------------------------

CentOS锛圕ommunity ENTerprise Operating System锛?#37828;Linux鍙戣?#23680;?#22556;箣涓锛屽畠鏄?#37833;嚜浜Red Hat Enterprise Linux渚濈収寮鏀炬簮?#21804;鐮?#29785;?#28729;?#38322;婂嚭鐨勬簮?#21804;鐮佹墍?#32042;璇戣屾垚銆?#37922;?#27996;庡嚭?#22172;鍚屾牱鐨勬簮?#21804;鐮?#38171;屽洜姝?#37832;?#27996;?#29781;佹眰楂?#25652;?#32459;?#28729;?#37804;?#37928;?/span>
鏈嶅姟鍣?/a>?#20114;CentOS鏇夸唬鍟?#28051;氱増鐨凴ed Hat Enterprise Linux?#23047;?#25956;銆?#28051;?#38000;?#37928;?#28051;?#37722;?#38171;屽湪浜嶤entOS骞?#28051;嶅寘鍚?#28751;?#38338;簮?#21804;鐮?#26462;?#28000;?#37510;?/span>

姒?#26473;?br style="word-wrap: break-word;" />銆銆CentOS锛屾垜浠?#37832;?#23536;堝?#27691;汉鍙?#28729;冪鍖?#28028;?#28051;氭搷浣滅郴缁?#38171;?#28051;嶇浣?#37804;?#28052;?#37721;?#28729;?#38171;屽畠?#20824;鏄linux鐨?#28051;涓?#37721;戣?#23680;増鏈?#37510;侰entOS鏄?#28028;?#28051;歀inux鍙戣?#23680;?#22565;澶?#32519;Red Hat Enterprise Linux锛堜互涓?#32457;颁箣涓篟HEL锛?#37928;勫?#23943;紪璇戠増鏈?#38171;孯HEL鏄?#23536;堝浼?#28051;?#38322;囩敤鐨linux鍙戣?#23680;増鏈?#38171;岄渶瑕佸悜RedHat浠樿?#35268;墠鍙互?#23047;?#25956;锛屽?#24816;?#34249;緱鍒?#28000;樿繃?#22402;?#25956;鐨?#37832;嶅姟鍜屾妧鏈?#37824;?#37816;佸?#23680;増鏈?#37719;?#32510;?#37510;?#26473;?#28051;狢entOS鍙互?#20762;REHL涓?#29297;鐨勬?#21229;瓚linux?#37108;缁?#37916;?#28583;?#38171;屼絾涓嶉渶瑕佸悜RedHat浠?#28000;讳綍鐨勮垂?#25956;锛屽?#23678;牱?#31683;寰?#28051;嶅埌浠讳綍鏈夊伩鎶鏈?#37824;?#37816;佸?#23677;崌绾?#37832;嶅姟銆?#37711;稿瀷鐨凜entOS?#25956;鎴?#37718;呮嫭杩欐牱涓浜?#32513;?#32513;?#37724;?#28051;汉锛屼粬浠?#39582;?#28051;嶉渶瑕?#28051;?#38338;?#37928;勫晢涓氭敮鎸佸氨鑳藉紑灞曟垚鍔?#37928;?#28051;氬姟銆侰entOS闈?#37722;戦偅浜涢渶瑕?#28028;?#28051;氱骇?#25655;浣滅郴缁?#32459;?#28729;?#37804;?#38171;屼絾骞?#28051;嶆兂璐熸?#21616;璇佸?#23678;敮鎸?#37826;?#38344;?#23534;閿鐨勪汉銆?銆銆  
CentOS璁?#37714;?#37828;湪2003骞寸孩甯藉喅瀹?#28051;嶅啀鎻?#28186;?#37711;嶈垂鐨勬妧鏈?#37824;?#37816;?#37721;?#27996;搧璁?#29831;佷箣鍚?#37928;勯儴浠?绾?#29999;?#38322;嶅缓鑰?锛圧ed Hat rebuilders锛変箣涓銆?銆銆CentOS鍜?#32457;?#28699;Linux 锛圫cientific Linux锛?#37510;佺敳楠?#37826;Linux锛圤racle Linux锛?#37510;佽垂绫矻inux锛團ermi Linux锛夌瓑?#20824;?#20114;绾?#29999;?#37813;鍙戝竷鐨勬簮?#21804;鐮佸幓闄?#37727;?#37837;?#38322;嶅缓Red Hat Enterprise Linux鐨勭?#33636;増锛屽?#26421;慨姝?#27996;?#23480;茬粡鍙?#37916;?#27996;?#37928;剅edhat鐨刡ug銆?銆銆CentOS鏄?Caos Linux"鐙珛璁?#37714;?#37928;?#28051;涓?#37714;?#37835;?#38171;屽湪Lawrence Berkeley ?#27991;瀹?#28729;?#26976;屽?#23220;浠荤?#24714;鍛?#28051;庣?#23338;簭璁?#29825;?#29999;?#37928;凨urtzer 琛?#32448;?#37510;?#28003;?#37722;庢潵Caos鍩洪?#25116;細鏈鍙?#23046;?#26473;?#37928;勮鍒?#37721;樻垚鏄疪HEL鐨勯?#23941;缓銆?/span>

鍘?#37721;?br style="word-wrap: break-word;" />銆銆Red Hat鍏?#37721;?#37928;?#27996;搧涓?#38171;?#37832;RedHat Linux锛?#28641;俁edhat8,9锛?#37724;岄拡瀵?#28028;?#28051;?#37721;戣鐨勭増鏈琑ed Hat Enterprise Linux锛岄兘鑳藉閫氳繃缃?#32513;FTP鍏嶈垂鐨勮幏寰楀?#26421;娇?#25956;锛屼絾鏄湪2003骞?#37928;勬椂鍊?#38171;宺edhat com鍙戝竷redhat 9(绠鍐?#28051;簉h9)鍚?#38171;?#28051;嶅?#23941;紑鍙憆edhat 10锛?1……锛屽叏闈?#26462;?#37722;憆edhat enterprise linux(绠鍐?#28051;簉hel)鐨勫紑鍙?#38171;屽?#23676;互寰涓?#37722;?#37928;勬槸锛?#37826;?#37928;剅hel 3瑕佹眰?#25956;鎴?#37711;?#29840;?#28052;發isence锛宺edhat com鎵?#29831;轰繚璇?#27996;?#37725;佺?#21229;瀹?#37804;?#38171;屽畨鍏?#37804;?#37510;俽hel 3浜?#26473;?#37714;朵唬鐮?#28051;嶅啀鎻?#28186;?#28051;嬭浇锛岃?#37828;?#28003;?#28051;簉edhat 鏈嶅姟鐨?#28051;?#20788;鍒?#38171;屼絾?#31790;?#21804;鐮?#28186;?#37906;?#37828;open銆?#28729;?#37928;?#26916;?#37929;?#37922;Fedora Project杩?#28051;?#26916;?#37929;?#37813;鍙栦唬锛屽?#26421;互Fedora Core杩?#28051;?#37722;嶅瓧鍙戣?#23677;苟鎻?#28186;?#37829;?#38315;氱敤鎴?#37711;嶈?#36891;娇?#25956;锛堣嚜Fedora 7寮濮嬪幓鎺?Core"锛?#37510;侳edora Core杩?#28051;狶inux鍙戣?#23680;?#22559;洿鏂板緢蹇?#38171;屽绾?#37719;?#39582;?#23480;?#37721;?#28751;?#37832;?#37826;?#37928;勭増鏈嚭鏉?#38171;?#37929;?#37715;?#37928;勭増鏈?#37828;疐edora 15锛?#26473;?#28051;狥edora璇?#26976;?#37928;勯煹鍛虫?#26055;緝娴撳锛屾瘡娆?#37721;戣?#23684;兘鏈?#37826;?#37928;勫?#29115;兘琚?#37716;?#37711;?#37714;?#37711;?#28051;?#38171;屽緱鍒?#37928;勬垚鍔?#32513;撴灉灏?#29722;?#38322;囩敤鍒癛HEL鐨?#37721;戝竷涓?#37510;傝櫧璇?#26473;欐牱锛?#26864;戠?#20346;?#21230;鏀?#26473;涙洿鏂?#37928;?#28051;嶅畨瀹?#27996;?#37725;佸浜?#28028;?#28051;?#37833;?#29831;?#39582;?#28051;?#37828;?#37832;濂?#37928;?#38315;夋嫨锛屽澶氭暟浼?#28051;氳繕鏄細閫夋嫨鏈夊伩鐨凴HEL浜搧銆?銆銆?#28266;鏋勬垚RHEL鐨勫澶氭暟杞?#28000;跺寘涓?#38171;岄兘鏄?#37737;?#27996;嶨PL鍗?#29825;?#37721;戝竷鐨?#38171;屼篃灏?#37828;垜浠父璇?#37928;勫紑婧愯蒋浠?#38171;屾?#27932;涓?#37828;?#26473;欐牱锛孯ed Hat鍏?#37721;镐篃閬?#23536;?#26473;?#28051;?#37719;?#29825;?#38171;屽皢鏋勬垚RHEL鐨勮蒋浠跺寘鍏?#23534;鍙戝竷锛?#37721;?#29781;佹槸閬?#23536;GPL鍗?#29825;?#38171;屼?#35763;?#26330;汉?#20824;鍙互?#28266;鍘?#37832;?#37928;勮蒋浠?#37835;勬垚鐨勫?#34425;涓?#37712;嶅紑鍙?#37724;?#37721;戝竷銆侰entOS灏?#37828;?#26473;欐牱?#28266;RHEL鍙戝竷鐨勫?#34425;涓?#28751;RHEL鐨勬?#21228;垚鍏?#38341;?#37712;嶇幇鐨?#28051;涓狶inux鍙戣?#23680;増鏈?#37510;俁HEL鐨?#37711;?#38341;嗙増鏈?#28051;?#37721;狢entOS涓涓?#38171;?#26473;?#37832;Oracle Linux锛孲cientific Linux锛孎ermi Linux?#29905;銆?#37510;?#28003;?#39582;?#28051;嶄繚闅?#28725;?#25652;擱HEL鐨勮蒋浠跺湪CentOS涓?#38344;兘?#31683;澶?00%鐨勬甯稿伐浣?#37510;傚苟涓斿畨鍏?#24532;鐨勪慨姝?#37724;岃蒋浠跺寘鐨勫崌绾?#28725;?#25652;擱HEL鐨?#37832;夊伩鏈嶅姟鍜屾妧鏈?#37824;?#37816;佹潵璇?#38171;屾暟鏃暟鏄?#37832;熸暟涓?#37832;?#37928;勫欢杩熸儏鍐典篃鏈?#37510;?/span>

]]>JS 鍒涘缓绫?--娣?#37722;?#37928;勬瀯閫犲?#33445;暟/鍘熷瀷鏂瑰紡http://www.67529968.com/algz/articles/384711.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Fri, 03 Aug 2012 08:50:00 GMThttp://www.67529968.com/algz/articles/384711.htmlhttp://www.67529968.com/algz/comments/384711.htmlhttp://www.67529968.com/algz/articles/384711.html#Feedback0http://www.67529968.com/algz/comments/commentRss/384711.htmlhttp://www.67529968.com/algz/services/trackbacks/384711.htmlJS 鍒涘缓绫?--娣?#37722;?#37928;勬瀯閫犲?#33445;暟/鍘熷瀷鏂瑰紡
prototype:鍘熷瀷.姝?#28725;硅薄鐨勬墍鏈?#28729;炰緥鍏?#27996;?#37720;熷瀷瀹氫箟鐨勬暟鎹?#37724;?瀵硅薄)寮曠敤.涓鑸敤浜?#38339;?#23005;?#38322;嶅?#23941;?#28056;缓鍑芥暟,娴垂?#21812;瀛?
鍘熷瀷涓?#28729;氫箟鐨勬墍鏈?#37713;芥暟鍜屽?#26336;敤鐨?#28725;硅薄?#20824;鍙?#37714;涘缓涓娆?鏋?#38315;犲?#33445;暟涓?#37928;?#37826;规硶?#22447;?#32048;闅?#37931;瀹炰緥鐨?#37714;涘缓閲嶅?#23941;?#28056;缓(濡傛灉鏈?#28725;硅薄鎴?#37826;规硶鐨?#29831;?.
涓嶇?#28266;鍘熷瀷涓?#26473;?#37828;?#37835;?#38315;犲?#33445;暟涓?灞?#37804;?鍊??#20824;涓?#37711;?#27996;?
鍒涘缓绫?#37928;?#37832;濂?#37826;瑰紡鏄敤鏋?#38315;犲?#33445;暟瀹氫箟灞?#37804;?#38171;岀敤鍘熷瀷瀹氫箟鏂规硶銆?/div>
杩欑鏂瑰紡鍚屾牱閫傜敤浜?#32513;?#37813;?#37832;?#37714;?#38171;岀敤瀵硅薄鍐?#37711;?#32513;?#37813;?#37835;?#38315;犲?#33445;暟鐨勫睘鎬?#38171;岀敤鍘熷瀷?#25724;缁?#37813;?prototype 瀵硅薄鐨?#37826;规硶銆?/div>
//鏋?#38315;犲?#33445;暟
function Car(sColor,iDoors,iMpg) {
  this.color = sColor; //瀹氫箟灞?#37804;?/div>
  this.doors = iDoors; //瀹氫箟灞?#37804;?/div>
  this.mpg = iMpg;     //瀹氫箟灞?#37804;?/div>
  this.drivers = new Array("Mike","John");//瀹氫?#22795;暟缁?#28725;硅薄.姣?#28051;?#28729;炰緥鍒涘缓涓涓?#37719;曠嫭鐨?#28725;硅薄
}
//鍏?#37711;?#37826;规硶(鍏?#27996;?,灞?#37804;?#28051;?#37711;?#27996;?
Car.prototype={
  value:1,                        //灞?#37804;?#28051;?#37711;?#27996;?/div>
  objs:new Array("A","B"),        //瀵硅薄鍏?#27996;?#23534;曠敤
  showColor : function() {        //鏂规硶鍏?#27996;?#23534;曠敤.
    alert(this.color);
  }
};
var oCar1 = new Car("red",4,23);
var oCar2 = new Car("blue",3,25);
oCar1.drivers.push("Bill");       //鏋?#38315;?#37826;规硶涓?#37928;?#28725;硅薄?#20824;鏄?#37722;?#28051;?#37913;珛鐨?
oCar1.value=2;                     //灞?#37804;?#28051;?#37711;?#27996;?
oCar1.objs.push('C');             //鍘熷瀷涓?#37928;?#28725;硅薄?#20824;鏄?#37711;?#27996;?#23534;曠敤鐨?
document.write(oCar1.drivers + "<br/>" );
  //Mike1,John,Bill
oCar1.showColor();                         //red
document.write(oCar2.objs + "<br/>" );
     //A,B          oCar1:A,B,C
document.write( "<br/>" +oCar2.value);     //1
document.write( "<br/>" +oCar2.drivers);   //Mike1,John


]]>MyEclipse 甯?#32515;?#37929;?#37722;屽垎鏀?#37928;?#26916;?#37929;椂锛屾姤?#25930; Exploded location overlaps an existing deployment瑙?#37712;?#37716;炴硶.http://www.67529968.com/algz/articles/380860.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Fri, 15 Jun 2012 06:29:00 GMThttp://www.67529968.com/algz/articles/380860.htmlhttp://www.67529968.com/algz/comments/380860.htmlhttp://www.67529968.com/algz/articles/380860.html#Feedback0http://www.67529968.com/algz/comments/commentRss/380860.htmlhttp://www.67529968.com/algz/services/trackbacks/380860.html鍙?#38335;?#26916;?#37929;?>properties->MyEclipse->Web->Web Context-root鐨?#37722;嶅瓧涓洪?#23941;懡鍚嶄箣鍚?#37928;?#37722;嶅?#26944;嵆鍙?#37510;?/span>

]]>
Django1.4 鎶敊锛欵rror: No module named mysite 瑙?#37712;?#37826;规硶http://www.67529968.com/algz/articles/380007.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 05 Jun 2012 03:30:00 GMThttp://www.67529968.com/algz/articles/380007.htmlhttp://www.67529968.com/algz/comments/380007.htmlhttp://www.67529968.com/algz/articles/380007.html#Feedback0http://www.67529968.com/algz/comments/commentRss/380007.htmlhttp://www.67529968.com/algz/services/trackbacks/380007.html寮鍙?#37916;?#28583;?#38171;Python2.7+Django1.4+PyCharm
?#23047;?#25956; PyCharm 寮鍙?nbsp;Django ?#26882;锛屽湪settings.py鐨処NSTALLED_APPS涓?#37721;渶瑕佹?#35826;姞app鍚嶅氨鍙互浜?#38171;屽嵆:'mysite',
濡傛灉杈?#37711;?django_example.mysite",?#22447;鎶敊锛?/p>

Error: No module named mysite




]]>
[杞琞UML绫诲浘绗?#37721;? 鍚勭鍏崇郴璇存槑?#20114;鍙?#28051;句緥http://www.67529968.com/algz/articles/378313.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 16 May 2012 07:49:00 GMThttp://www.67529968.com/algz/articles/378313.htmlhttp://www.67529968.com/algz/comments/378313.htmlhttp://www.67529968.com/algz/articles/378313.html#Feedback0http://www.67529968.com/algz/comments/commentRss/378313.htmlhttp://www.67529968.com/algz/services/trackbacks/378313.htmlUML涓?#37819;?#26473;?#28725;硅薄鍜?#32491;讳箣?#26879;鐩?#27996;?#37711;崇郴鐨?#37826;瑰?#24531;?#21614;嫭锛氫?#28618;禆锛圖ependency锛?#38171;屽叧?#20168;锛圓ssociation锛?#38171;岃仛鍚?#38171;圓ggregation锛?#38171;?#32513;?#37722;?#38171;圕omposition锛?#38171;?#23049;涘寲锛圙eneralization锛?#38171;屽疄鐜?#38171;圧ealization锛夌瓑銆?/p>

渚濊禆 锛圖ependency锛?#38171;?#37711;?#32497;A鐨?#37721;樺寲?#32048;褰卞搷鍏?#32497;B锛屼絾鍙嶄箣涓嶆垚?#29659;锛岄偅涔B鍜孉鐨?#37711;崇郴鏄?#28186;濊禆鍏崇郴锛孊渚濊禆A锛?#32491;诲睘鍏?#32495;诲?#23677;疄鐜?#37711;?#32495;诲湪璇?#28052;?#28051;?#29825;?#28052;熸槸渚濊禆鍏??#37108;锛屼絾鐢?#27996;?#37711;?#37832;夋洿鐗规畩鐨勭敤閫?#38171;屾墍?#20114;琚?#37719;曠嫭鎻?#26473;?#37510;倁ml涓敤甯?#32480;?#28598;?#37928;勮?#27697;嚎琛?#32448;Dependency鍏崇郴锛岀澶?#37816;?#37722;戣渚濊禆鍏?#32497;?#37510;?/p>

娉涘寲锛圙eneralization锛?#38171;?#38315;氬父鎵璇?#37928;?#32513;?#37813;?#38171;堢?#35268;畩涓?#28003;?is kind of 涓鑸?#28051;?#28003;?#38171;?#37711;崇郴锛?#28051;嶅繀澶氳閲?#27996;?#37510;倁ml涓敤甯?#32460;?#36423;冪澶?#37928;?#28729;?#32510;跨嚎琛?#32448;篏eneralization鍏崇郴锛岀澶?#37816;?#37722;?#28051;鑸?#28051;?#28003;?#37510;?/p>

瀹?#37916;?#38171;圧ealize锛?#38171;?#37711;?#32497;A瀹氫箟涓涓?#32510;?#28729;?#38171;屽厓绱B瀹?#37916;?#26473;?#28051;?#32510;?#28729;?#38171;屽垯B鍜孉鐨?#37711;崇郴鏄疪ealize锛孊 realize A銆?#26473;?#28051;?#37711;崇郴鏈?#29238;?#25956;浜?#37818;?#37721;?#37510;倁ml涓敤绌?#36423;?#32460;?#36423;冪澶?#37724;岃?#27697;嚎琛?#32448;篟ealize鍏崇郴锛岀澶?#37816;?#37722;?#28729;氫?#22796;害瀹?#37928;?#37711;?#32497;?#37510;?/p>

鍏宠仈锛圓ssociation锛?#38171;?#37711;?#32497;犻棿鐨?#32513;撴?#21227;寲鍏崇郴锛?#37828;?#28051;绉嶅急鍏崇郴锛岃鍏宠仈鐨?#37711;?#32497;犻棿閫氬父鍙互琚?#37913;珛鐨勮冭檻銆倁ml涓敤瀹?#32510;?#29723;?#32448;篈ssociation鍏崇郴锛岀澶?#37816;?#37722;戣渚濊禆鍏?#32497;?#37510;?/p>

?#20187;鍚?#38171;圓ggregation锛?#38171;?#37711;宠?#26047;?#23815;郴鐨?#28051;绉嶇?#36891;緥锛?#29723;?#32448;洪儴鍒?#37724;?#37825;?#28003;?#38171;?#37825;?#28003;?has a ?#20788;鍒?#38171;?#37928;?#37711;崇郴銆倁ml涓敤甯?#32460;?#36423;冭?#21342;舰澶?#37928;?#28729;?#32510;?#29723;?#32448;篈ggregation鍏崇郴锛岃?#21342;舰澶?#37816;?#37722;?#37825;?#28003;?#37510;?/p>

缁?鍚?#38171;圕omposition锛?#38171;氱粍鍚?#37828;仛鍚?#37711;崇郴鐨?#37721;?#32457;?#38171;?#29723;?#32448;?#37711;?#32497;犻棿?#27967;寮?#37928;?#32513;?#37722;?#37711;崇郴銆?#28641;傛灉鏄?#32513;?#37722;?#37711;崇郴锛屽?#20635;灉鏁?#28003;?#29722;?#37934;村?#24531;垯涓?#28003;?#28051;瀹氫細琚?#37934;村潖锛岃岃仛鍚?#37928;?#28051;?#28003;撳垯鍙??#20824;鏄?#29722;?#28598;?#28051;?#37825;?#28003;撴墍鍏?#27996;?#37928;?#38171;?#28051;?#28051;瀹氫細闅?#37931;?#28999;涓?#37825;?#28003;?#37928;?#37934;村潖鑰岃鐮村潖銆倁ml涓敤甯?#28729;?#36423;冭?#21342;舰澶?#37928;?#28729;?#32510;?#29723;?#32448;篊omposition鍏崇郴锛岃?#21342;舰澶?#37816;?#37722;?#37825;?#28003;?#37510;?/p>

鍏?#28051;?#28186;濊禆锛圖ependency锛?#37928;?#37711;崇郴鏈寮?#38171;岃屽叧?#20168;锛圓ssociation锛?#38171;岃仛鍚?#38171;圓ggregation锛?#38171;?#32513;?#37722;?#38171;圕omposition锛?#29723;?#32448;?#37928;?#37711;崇郴渚?#23046;?#28583;?#23534;?#37510;傛崲瑷?#31651;鍏宠仈锛岃仛鍚?#38171;?#32513;?#37722;堥兘鏄?#28186;濊禆鍏崇郴鐨?#28051;绉?#38171;岃仛鍚?#37828;?#29723;槑瀵硅薄?#31651;?#26879;鐨勬暣浣?#28051;庨儴鍒?#37711;崇郴鐨?#37711;宠仈锛岃?#32513;?#37722;?#37828;?#29723;槑鏁?#28003;?#28051;庨儴鍒嗕箣?#26879;鏈?#37929;?#37722;?#37922;?#37723;?#37723;?#37832;?#37711;崇郴鐨勮仛鍚?#37510;?/p>

鑰屽叧?#20168;涓?#28186;濊禆鐨?#37711;?#32495;荤敤涓鍙?#29831;?#22994;傛嫭涓?#37833;?#28751;?#37828;?#38171;屼?#28618;禆鎻?#26473;?#27996;?#28725;硅薄?#31651;?#26879;鐨?#29835;冪敤鍏崇郴锛岃屽叧?#20168;鎻?#26473;?#27996;?#28725;硅薄?#31651;?#26879;鐨?#32513;撴瀯鍏崇郴銆?/p>

鍚?#38344;?#37928;勪緥瀛?#28751;嗛拡瀵规煇涓?#37711;?#28003;?#37929;?#37928;勬潵鐙?#32468;嬪?#26495;?#26336;鍚勭鍏崇郴銆傝?#30028;劧璇硶鏃?#29831;?#38171;屼絾杩?#27996;涗緥瀛?#37721;?#26473;?#28051;姝?#32494;剧锛屽湪瀹?#28000;?#37928;?#37832;?#37825;堣?#20904;洿?#21812;鍖呮嫭?#27967;澶?#37928;?#29831;?#28052;?#37510;?br />

渚濊禆锛圖ependency锛?br />

瀹炰綋?#31651;?#26879;涓涓?#8220;?#23047;?#25956;”鍏崇郴鏆?#32448;?#28051;涓?#28729;炰綋鐨勮?#21230;寖鍙?#37922;?#37721;樺寲鍚?#38171;?#37721;?#38003;藉?#21342;搷渚濊禆浜?#28729;?#37928;?#37711;?#28000;?#28729;炰緥锛?strong>鍥綝锛?#37510;??#27967;鍏?#28003;撳湴璇?#38171;屽畠鍙?#26462;?#37817;?#28051;?#28725;?#28051;嶅湪瀹炰?#23337;?#28357;敤鍩熷唴鐨?#28051;涓?#32491;?#37812;?#28725;硅薄鐨?#28000;讳綍绫诲瀷鐨勫?#26336;敤銆?#37711;?#28051;?#37718;呮嫭涓涓?#28766;?#20788;鍙?#38322;?#38171;屽閫氳繃鏂规硶璋冪敤鑰岃幏寰?#37928;?#28051;涓?#28725;硅薄鐨勫?#26336;敤锛?#28641;?#28051;嬩緥鎵 绀?#38171;?#38171;?#37812;?#38000;?#28725;?#28051;涓?#32491;?#37928;勯潤鎬?#37826;规硶鐨勫?#26336;敤锛?#37722;屾椂涓嶅?#27194;湪閭?#28051;?#32491;?#37928;?#28051;涓?#28729;炰緥锛?#37510;備篃鍙?#37714;敤“渚濊禆”鏉?#29723;?#32448;哄寘鍜屽?#21612;箣?#26879;鐨?#37711;崇郴銆?#37922;?#27996;?#37718;?#28051;?#37722;?#37832;?#32491;?#38171;屾墍?#20114;浣?#37721;?#37837;规嵁閭?#27996;涘寘涓?#37928;?鍚?#28051;?#32491;讳箣?#26879;鐨?#37711;崇郴锛?#29723;?#32448;哄嚭鍖?#37724;屽寘鐨?#37711;崇郴銆?/p>

鍥綝


鍏宠仈锛圓ssociation锛?br />

瀹炰綋?#31651;?#26879;鐨?#28051;涓?#32513;撴?#21227;寲鍏?#32495;昏?#27089;瀵硅薄鏄?#37929;?#27996;?#26473;?#37818;?#37928;?#37510;?#32480;?#28598;?#37828;?#37721;?#38315;?#37928;?#38171;屽?#20906;敤浜?#37816;?#28729;?#28725;艰埅鑳藉姏銆?#28641;傛灉?#30149;鏈?#32480;?#28598;?#38171;屾殫绀?#37828;?#28051;绉?#37721;屽悜鐨?#28725;艰埅鑳藉姏銆傚湪Java涓?#38171;屽叧?#20168;锛?strong>鍥綞锛?杞?#37817;?#28051;?#28051;涓?#28729;炰?#23337;?#28357;敤鍩?#37928;?#37721;?#38322;?#38171;屽氨鍍忓浘E鐨?#8220;Java”鍖哄?#29112;墍灞曠鐨勪唬鐮?#38317;牱銆?#37721;?#28051;?#28051;涓?#37711;宠仈闄勫姞鍏?#28000;栦慨楗?#32471;?#37510;?#28598;?#38322;?#37804;?#38171;Multiplicity锛変慨楗?#32471;?#37830;?#32448;?鐫瀹炰?#23337;箣?#26879;鐨?#37711;崇郴銆傚湪绀鸿?#20903;唬鐮?#28051;?#38171;Employee鍙互鏈?涓?#37812;栨洿澶?#37928;凾imeCard瀵硅薄銆?#28003;?#37828;?#38171;屾瘡涓TimeCard鍙?#28000;?#28766;?#27996;?#37719;曠嫭涓涓?Employee銆?/p>

鍥綞

?#20187;鍚?#38171;圓ggregation锛?br />

?#20187;鍚?#38171;?strong>鍥綟锛?#37828;?#37711;宠仈鐨?#28051;绉嶅舰寮?#38171;屼唬琛?#28051;?#28051;?#32491;讳箣?#26879;鐨勬暣浣?灞?#20788;鍏崇郴銆傝仛鍚堟殫绀虹潃鏁?#28003;撳湪姒?#36423;?#28051;?#28598;?#27996;庢?#26047;眬?#20788;?#27967;楂?#37928;?#28051;涓?#32510;?#37714;?#38171;岃屽叧?#20168;鏆?#32448;?#28051;?#28051;?#32491;诲湪姒?#36423;?#28051;?#28003;?#27996;?#37929;?#37722;?#37928;勭骇鍒?#37510;傝仛鍚堜篃杞?#37817;垚Java涓?#37928;?#28051;涓?#28729;炰?#23337;?#28357;敤鍩?#37721;?#38322;?#37510;?br />
鍏宠?#26047;?#23683;仛鍚?#37928;勫尯鍒?#32510;?#32494;规槸姒?#36423;?#28051;?#37928;?#38171;岃?#28051;?#28051;?#37837;?#37721;?#37828;犲湪璇?#28052;?#28051;?#37510;傝仛鍚?#26473;樻殫绀虹潃瀹炰緥鍥?#28051;?#28051;嶅?#27194;湪?#27926;?#30718;銆傛崲瑷?#31651;锛?#37721;兘鏄?#28051;绉嶅崟鍚?#37711;崇郴銆?/p>

鍥綟



鍚堟垚锛圕omposition锛?br />

鍚堟垚 锛?strong>鍥綠锛?鏄仛鍚?#37928;?#28051;绉嶇?#35268;畩褰?#23534;?#38171;屾殫绀?#8220;灞?#20788;”?#28266;“鏁?#28003;?#8221;?#21812;?#20788;鐨?#37922;?#28699;?#37832;熻?#23683;矗銆?#37722;堟垚涔熸槸闈?#37711;?#27996;?#37928;?#37510;傛墍?#20114;锛岃?#30028;?#36346;眬?#20788;涓?#28051;瀹氳闅?#37825;?#28003;?#37928;勯姣佽岃閿姣?#38171;屼絾鏁?#28003;?#29781;?#28052;?#29840;熻矗淇?#37816;佸眬 ?#20788;鐨勫?#27195;?#33636;姸鎬?#38171;岃涔?#29840;熻矗灏?#37711;?#38335;姣?#37510;?#28766;?#20788;涓?#37721;?#28051;?#37711;?#28000;?#37825;?#28003;?#37711;?#27996;?#37510;?#28003;?#37828;?#38171;?#37825;?#28003;?#37721;?#28751;?#37813;鏈夋?#20909;浆浜?#32513;?#37721;?#28051;涓?#28725;硅薄锛屽?#24228;?#38341;?#37719;?#28751;?#37813;挎媴鐢?#28699;?#37832;熻?#23683;矗銆?/p>

Employee鍜孴imeCard鐨?#37711;崇郴鎴?#29825;告洿閫?#37722;?#29723;?#32448;烘垚“鍚堟垚”锛岃?#28051;?#37828;?#29723;?#32448;烘垚“鍏宠仈”銆?/p>

鍥綠

娉涘寲锛圙eneralization锛?br />

娉涘寲锛?strong>鍥綡锛?#29723;?#32448;?#28051;涓洿娉涘寲鐨?#37711;?#32497;?#37724;?#28051;涓洿鍏?#28003;?#37928;?#37711;?#32497;犱箣?#26879;鐨?#37711;崇郴銆傛?#28056;寲鏄敤浜?#28725;?#32513;?#37813;?#26473;?#29723;屽缓妯?#37928;UML鍏?#32497;?#37510;傚湪Java涓?#38171;岀敤extends鍏?#38335;?#28699;?#37833;洿鎺?#29723;?#32448;?#26473;欑鍏崇郴銆?/p>

鍥綡


瀹?#37916;?#38171;圧ealization锛?br />

瀹炰緥锛?strong>鍥綢锛?#37711;崇郴鎸?#28729;?#28051;?#28051;?#28729;炰綋?#31651;?#26879;鐨?#28051;涓?#37722;?#37722;?#37510;傛崲瑷?#31651;锛?#28051;涓?#28729;炰綋瀹氫箟涓涓?#37722;?#37722;?#38171;岃?#37721;?#28051;涓?#28729;炰綋淇?#29831;佸饱琛?#29831;?#37722;?#37722;?#37510;?#28725;Java搴旂敤绋嬪簭杩?#29723;屽缓妯椂锛屽疄鐜?#37711;崇郴鍙洿鎺敤implements鍏?#38335;?#28699;?#37833;?#29723;?#32448;?#37510;?/p>

鍥綢




杞嚜:http://blog.csdn.net/kingofbirdzjy/article/details/1967871 



]]>涓?#37832;?#28051;?02.130.82.97瀛?#32515;?#28766;忚斀鐮?#28051;?55.255.192.0锛屽畠鎵澶?#37928;?#32515;?#32513;?#28051;?#28000;涔?/title><link>http://www.67529968.com/algz/articles/378170.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Tue, 15 May 2012 03:42:00 GMT</pubDate><guid>http://www.67529968.com/algz/articles/378170.html</guid><wfw:comment>http://www.67529968.com/algz/comments/378170.html</wfw:comment><comments>http://www.67529968.com/algz/articles/378170.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/algz/comments/commentRss/378170.html</wfw:commentRss><trackback:ping>http://www.67529968.com/algz/services/trackbacks/378170.html</trackback:ping><description><![CDATA[<pre mb10"="" id="content-525389197" style="margin-top: 0px; margin-bottom: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 24px; background-color: #ffffff; "> (1)鍏?#27996;?#29785;?#37737;虹杩愮畻 <pre mb10"="" id="content-525389197" style="margin-top: 0px; margin-bottom: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; ">寮傛垨杩愮畻锛氱浉鍚?#28051;?锛?#28051;?#37722;?#28051;? 涓?#26473;愮畻锛?#28051;?#38000;?#28051;??#26882;涓?锛?#37832;?涓? 鎴?#26473;愮畻锛?#37832;?涓? <br /> <br />(2)IP缃戞鐨勮绠?#37724;屽垝鍒? <br /> IP鍜屽瓙缃?#37818;?#37934;? ?#22428;浠?#38318;界煡閬?#38171;孖P鏄?#37922;卞?#28057;?#22443;暟瀛?#32513;勬垚锛屽湪姝?#38171;屾垜浠?#37711;?#37833;?#27996;?#29785;?#28051;涓?绫诲父?#25956;鐨処P <br /> A绫籌P娈? 0.0.0.0 鍒?27.255.255.255 <br /> B绫籌P娈? 128.0.0.0 鍒?91.255.255.255 <br /> C绫籌P娈? 192.0.0.0 鍒?23.255.255.255 <br /><br /> XP榛樿鍒嗛厤鐨勫瓙缃?#37818;?#37934;佹?#24532;鍙?#37832;?55鎴? <br />A绫?#37928;勯?#27199;瀛?#32515;?#37818;?#37934;?255.0.0.0 涓涓?#28699;?#32515;?#37832;澶?#37721;互瀹?#32510;?677涓囧鍙?#37922;佃剳 <br />B绫?#37928;勯?#27199;瀛?#32515;?#37818;?#37934;?255.255.0.0 涓涓?#28699;?#32515;?#37832;澶?#37721;互瀹?#32510;?涓?#37721;?#37922;佃剳 <br />C绫?#37928;勯?#27199;瀛?#32515;?#37818;?#37934;?255.255.255.0 涓涓?#28699;?#32515;?#37832;澶?#37721;互瀹?#32510;?54鍙?#37922;佃剳 <br /> ?#22428;?#20114;鍓?#29825;?#28051;?#38171;岃?#20345;?#34411;妸涓浜?#37922;佃剳鎼炲湪鍚?#28051;缃戞锛?#37721;?#29781;両P鐨勫墠涓夋涓?#29297;灏?#37721;互浜?#38171;屼澶?#38171;屾垜鎵嶇煡閬撴?#25126;敊浜?#37510;?#28641;傛?#28357;収?#22428;杩?#29831;?#37928;?#29831;?#38171;?#28051;涓?#28699;?#32515;?#28751;?#37721;兘瀹?#32510;?54鍙?#37922;佃剳锛熺?#29112;槸鏈?#37904;?#32471;?#29831;?#37510;傛垜浠?#37833;?#29831;?#29831;?#32513;嗙?#23340;湅鍚?#37510;? <br /><br /> 瑕佹兂?#28266;鍚?#28051;缃戞锛?#37721;?#29781;佺綉缁?#37837;?#29831;?#37929;?#37722;屽氨鍙互浜?#38171;岄偅瑕佹?#28052;堢湅缃?#32513;?#37837;?#29831;?#37723;?#38171;熼鍏?#29781;佸仛鐨勬槸鎶?#23011;忔鐨処P杞?#37817;?#28051;?#27996;?#26473;?#37714;?#37510;?#38171;?#37832;変汉璇?#38171;屾垜涓嶄細杞?#37817;?#38000;?#38171;屾病鍏崇郴锛屾垜浠敤Windows?#22172;甯?#29825;?#32480;楀櫒灏?#29723;?#37510;傛?#25779;紑璁?#32480;楀櫒锛?#37904;规煡鐪?gt;绉?#28699;瀷锛岃緭鍏?#37719;?#26473;?#37714;?#37928;勬暟瀛?#38171;屽?#23943;偣涓涓?#8220;浜?#26473;?#37714;?#8221;杩?#28051;?#37719;?#38315;?#37904;?#38171;屽氨鍙互鍒?#37817;?#38007;?#27996;?#26473;?#37714;?#27996;?#37510;?#38171;? <br /> 鎶?#28699;?#32515;?#37818;?#37934;佸垏鎹?#38007;?#27996;?#26473;?#37714;?#38171;屾垜浠細鍙?#37916;?#38171;屾墍鏈?#37928;勫瓙缃?#37818;?#37934;佹槸鐢?#28051;涓茶繛缁?#37928;?鍜?#28051;涓茶繛缁?#37928;?缁勬垚鐨?#38171;?#28051;鍏?娈?#38171;屾?#24532;8浣?#38171;?#28051;鍏?2浣嶆暟锛?#37510;? <br /> 255.0.0.0 11111111.00000000.00000000.00000000 <br /> 255.255.0.0 11111111.11111111.00000000.00000000 <br /> 255.255.255.0 11111111.11111111.11111111.00000000 <br /> 杩?#37828;A/B/C涓?#32491;?#27035;樿瀛?#32515;?#37818;?#37934;佺殑浜?#26473;?#37714;跺舰寮?#38171;屽叾瀹?#38171;?#26473;?#37832;夊?#34249;?#27697;?#23941;瓙缃?#37818;?#37934;?#38171;?#37721;?#29781;佹槸涓涓茶繛缁?#37928;?鍜?#28051;涓茶繛缁?#37928;?灏?#37721;互浜?#38171;?#23011;忔?#30008;兘鏄?浣?#38171;?#37510;?#28641;?1111111.11111111.11111000.00000000锛?#26473;欎?#29112;槸涓娈?#37722;堟硶鐨勫瓙缃?#37818;?#37934;?#37510;?#28699;?#32515;?#37818;?#37934;佸喅瀹?#37928;勬槸涓涓?#28699;?#32515;?#37928;勮绠?#37832;烘暟鐩?#38171;岃绠?#37832;?#37711;?#23534;?#37828;?鐨刴娆?#37826;?#38171;屽叾涓?#38171;屾垜浠?#37721;互鎶妋鐪?#37714;版槸鍚?#38344;?#37928;勫?#27692;?#25126;0銆?#28641;?55.255.255.0杞?#37817;垚浜?#26473;?#37714;?#38171;岄偅灏?#37828;?1111111.11111111.11111111.00000000锛屽悗闈?#37832;?棰?锛岄偅m灏?#37828;?锛?55.255.255.0杩?#28051;?#28699;?#32515;?#37818;?#37934;?#37721;互瀹?#32510;?鐨?娆?#37826;?#38171;?#37721;?#38171;?#37922;佃剳锛屼篃灏?#37828;?56鍙?#38171;屼絾鏄?#37832;?#28051;?#28051;狪P鏄?#28051;嶈?#30028;敤鐨?#38171;岄偅灏?#37828;?#37832;鍚?#28051;娈?#28051;嶈兘涓?鍜?55锛屽?#24531;幓杩?#28051;?#37721;?#38171;屽氨鏄?54鍙?#37510;傛垜浠?#37712;嶆潵?#20187;涓涓?#37510;? <br /> 255.255.248.0杩?#28051;?#28699;?#32515;?#37818;?#37934;?#37721;互鏈澶?#28729;?#32510;?#28598;氬皯鍙?#37922;佃剳锛? 璁?#32480;?#37826;规硶锛? 鎶?#28751;?#37711;惰浆鎹?#28051;?#27996;?#26473;?#37714;?#37928;勫?#28057;?#22443;暟瀛?#38171;?#23011;忔瑕佹槸8浣?#38171;屽?#20635;灉鏄?锛?#37721;互鍐欐垚8涓?锛屼篃灏?#37828;?0000000锛? 11111111.1111111.11111000.00000000 鐒?#37722;?#38171;屾暟?#26271;鍚?#38344;?#37832;夊嚑棰?锛?#28051;鍏?#37828;?#37832;?1棰?#38171;岄偅灏?#37828;?鐨?1娆?#37826;?#38171;岀瓑浜?048锛?#26473;?#28051;?#28699;?#32515;?#37818;?#37934;?#37832;澶?#37721;互瀹?#32510;?048鍙?#37922;佃剳銆? <br /> 涓涓?#28699;?#32515;?#37832;澶?#37721;互瀹?#32510;?#28598;氬皯鍙?#37922;佃剳浣犱細绠?#27996;?#37722;?#38171;?#28051;?#38344;垜浠?#37833;?#28051;?#38315;?#37722;?#32480;楁硶鐨勯銆? 涓涓?#37711;?#37721;?#37832;?30鍙?#37922;佃剳锛?#32513;勬垚涓涓?#28725;圭瓑灞鍩?#32515;?#38171;屽瓙缃?#37818;?#37934;?#29825;?#28598;氬皯鏈鍚?#38315;?#38171;? 棣?#37711;?#38171;?#37827;?#37924;?#38171;?30鍙?#37922;佃?#25120;敤B绫籌P鏈鍚?#38315;?#38171;圓绫?#28051;嶇敤璇?#27996;?#38171;屽澶?#38171;孋绫?#37721;?#28051;嶅锛岃偗瀹?#37828;疊绫?#38171;?#38171;屼絾鏄疊绫?#27035;樿鐨勫瓙缃?#37818;?#37934;佹槸255.255.0.0锛?#37721;互瀹?#32510;?涓?#37721;?#37922;佃剳锛?#37828;剧劧涓嶅鍚?#38315;?#38171;岄偅瀛?#32515;?#37818;?#37934;?#29825;?#28598;氬皯鍚?#38315;?#37723;?#38171;熸垜浠?#37711;?#37833;?#37714;?#28051;?#37711;?#23534;?#37510;? 2鐨刴娆?#37826;?#38171;?60 棣?#37711;?#38171;屾垜浠?#32429;?#28729;?涓瀹?#37828;?#28598;?#27996;?娆?#37826;?#37928;?#38171;屽洜涓烘垜浠煡閬?鐨?娆?#37826;规槸256锛屼篃灏?#37828;C绫籌P鐨?#37832;澶?#28729;?#32510;?#37922;佃剳鐨勬暟鐩?#38171;屾垜浠?#28000;?娆?#37826;?#28051;涓?#28051;涓?#29831;?鐨?娆?#37826;规槸512锛?#28051;嶅埌560锛?鐨?0娆?#37826;规槸1024锛岀湅鏉?鐨?0娆?#37826;规渶鍚?#38315;?#27996;?#37510;?#28699;?#32515;?#37818;?#37934;?#28051;鍏?#37922;?2浣?#32513;勬垚锛屽?#33580;瀹?#37722;?#38344;?0浣?#37828;?浜?#38171;岄偅鍓?#38344;?#37928;?2浣嶅氨鏄?锛?#37832;鍚?#38315;?#37928;勫瓙缃?#37818;?#37934;佸氨鏄?#38171;?1111111.11111111.11111100.00000000锛岃浆鎹垚10杩?#37714;?#38171;岄偅灏?#37828;?55.255.252.0銆? 鍒嗛?#23941;?#23683;绠楀瓙缃?#37818;?#37934;?#28003;犱細浜?#37722;?#38171;?#28051;?#38344;?#38171;屾垜浠?#37833;?#37930;嬬湅IP鍦板潃鐨?#32515;戞銆? 鐩?#28103;?#28610;藉?#27691;汉閮藉?#23677;伓涓?#29297;锛岃涓IP鍙?#29781;佸墠涓夋鐩?#37722;?#38171;屽氨鏄湪鍚?#28051;缃戞浜?#38171;屽叾瀹?#38171;?#28051;?#37828;?#26473;欐牱鐨?#38171;屽?#23678;牱锛屾垜鏍锋妸IP鐨勬瘡涓娈?#26462;?#37817;?#28051;?#28051;涓?#27996;?#26473;?#37714;舵暟锛?#26473;?#38322;屽?#36776;嬁IP锛?92.168.0.1锛屽瓙缃?#37818;?#37934;?#38171;?55.255.255.0?#20187;瀹?#26976;屽惂銆? 192.168.0.1 11000000.10101000.00000000.00000001 锛?#26473;?#38322;?#29831;存槑涓涓?#38171;屽?#23677;瓙缃?#37818;?#37934;?#28051;?#29297;锛屾?#24532;8浣?#38171;?#28051;嶈冻8浣?#37928;?#38171;屽墠闈?#37716;?琛綈銆?#38171;? IP 11000000.10101000.00000000.00000001 瀛?#32515;?#37818;?#37934;? 11111111.11111111.11111111.00000000 ?#28266;杩?#38322;?#38171;屽悜澶?#28729;?#29831;?#28051;涓?#37714;板鎬?#28052;?#37837;锋?#23943;畻鍚?#28051;缃戞銆? 瑕佹兂?#28266;鍚?#28051;缃戞锛屽繀?#28214;?#20187;鍒?#32515;?#32513;?#37837;?#29831;?#37929;?#37722;?#38171;岄偅缃?#32513;?#37837;?#29831;?#37804;?#28052;堢畻鍛?#38171;?#37722;?#32491;籌P鐨?#32515;?#32513;?#37837;?#29831;嗙?#26945;硶?#20824; 鏄?#28051;?#28051;?#29297;鐨?#37510;侫绫?#37928;?#38171;?#37721;?#32480;?#32471;?#28051;娈?#37510;侭绫?#38171;?#37721;?#32480;?#32471;?#28051;銆?#27996;屾銆侰绫?#38171;岀畻绗?#28051;銆?#27996;?#37510;?#28051;夋銆? 绠楁硶鍙?#29781;佹妸IP鍜屽瓙缃?#37818;?#37934;佺?#21228;瘡浣嶆暟AND灏?#37721;互浜?#37510;? <br /> AND鏂规硶锛?鍜?锛? 0鍜?锛? 1鍜?锛? 濡?#38171;And 192.168.0.1锛?55.255.255.0锛屽厛杞?#37817;?#28051;?#27996;?#26473;?#37714;?#38171;?#37906;?#37722;嶢ND姣?#28051;浣? IP 11000000.10101000.00000000.00000001 瀛?#32515;?#37818;?#37934;? 11111111.11111111.11111111.00000000 寰楀嚭AND缁撴灉 11000000.10101000.00000000.00000000 杞?#37817;?#28051;?#37719;?#26473;?#37714;?92.168.0.0锛?#26473;?#28751;?#37828;?#32515;?#32513;?#37837;?#29831;?#38171;? 鍐嶅皢瀛?#32515;?#37818;?#37934;?#37721;?#37721;?#38171;屼篃灏?#37828;?0000000.00000000.00000000.11111111锛?#28051;IP AND 寰楀嚭缁撴灉00000000.00000000.00000000.00000001锛岃浆鎹?#28051;?0杩?#37714;?#38171;屽嵆0.0.0.1锛? 杩?.0.0.1灏?#37828;?#28051;?#37832;?#37837;?#29831;?#37510;?#29781;佹兂?#28266;鍚?#28051;缃戞锛屽繀?#28214;?#20187;鍒?#32515;?#32513;?#37837;?#29831;?#28051;?#29297;銆? ?#22428;浠?#37712;嶆潵鐪嬬湅杩?#28051;?#37824;?#28051;洪?#27199;瀛?#32515;?#37818;?#37934;佺殑B绫籌P 濡侷P锛?88.188.0.111锛?88.188.5.222锛屽瓙缃?#37818;?#37934;侀兘璁?#28051;?55.255.254.0锛屽湪鍚?#28051;缃戞鍚?#38171;? 鍏堝皢杩?#27996;?#26462;?#37817;垚浜?#26473;?#37714;? 188.188.0.111 10111100.10111100.00000000.01101111 188.188.5.222 10111100.10111100.00000101.11011010 255.255.254.0 11111111.11111111.11111110.00000000 鍒?#37714;AND锛屽緱 10111100.10111100.00000000.00000000 10111100.10111100.00000100.00000000 缃?#32513;?#37837;?#29831;?#28051;?#28051;?#29297;锛屽嵆涓嶅湪鍚?#28051;缃戞銆? 鍒?#37826;?#37828;?#28051;?#37828;湪鍚?#28051;缃戞锛屼綘?#32048;浜?#37722;?#38171;?#28051;?#38344;?#38171;屾垜浠?#37833;?#37904;?#28729;?#38340;?#37928;?#37510;? 涓涓?#37711;?#37721;?#37832;?30鍙?#37922;佃剳锛?#32513;勬垚涓涓?#28725;圭瓑灞鍩?#32515;?#38171;屽瓙缃?#37818;?#37934;佸拰IP璁?#28598;氬皯鏈鍚?#38315;?#38171;? 瀛?#32515;?#37818;?#37934;?#28051;?#29831;?#27996;?#38171;屽墠闈?#32480;楀嚭缁撴灉鏉?#27996;?1111111.11111111.11111100.00000000锛屼篃灏?#37828;?55.255.252.0 ?#22428;浠?#37916;板湪瑕佺瀹?#37928;勬槸IP濡?#28003;?#37714;嗛厤锛岄鍏?#38171;?#38315;?#28051;涓狟绫籌P娈?#38171;?#26473;?#38322;屽氨閫?88.188.x.x鍚? 杩欐牱锛孖P鐨勫墠涓?#23048;?#32429;?#28729;?#37928;?#38171;屽叧閿?#37828;?#29781;佺瀹?#32471;?#28051;夋锛?#37721;?#29781;佺綉缁?#37837;?#29831;?#37929;?#37722;屽氨鍙互浜?#37510;傛垜浠?#37711;?#37833;?#32429;?#28729;?#32515;?#32513;?#37721;?#37510;?#38171;堟垜浠?#37814;?#28699;?#32515;?#37818;?#37934;?#28051;?#37928;?鍜孖P涓?#37928;?瀵?#28751;辫?#38155;潵锛?鍜?瀵?#25652;旇?#38155;潵锛屽涓?#38171;?#38171;? <br />255.255.252.0 11111111.11111111.11111100.00000000 <br />188.188.x.x 10111100.10111100.??????**.******** <br />缃?#32513;?#37837;?#29831;? 10111100.10111100.??????00.00000000 鐢辨鍙煡锛?澶勯殢渚垮锛?#37721;?#38003;界敤0鍜?濉?#38171;?#28051;?#28051;瀹?#37711;?#37828;?鍜?锛?#38171;屾垜浠?#28751;辩敤鍏?#28617;?鍚?#38171;?澶勯殢渚?#38171;?#26473;欐牱鍛?#38171;屾垜浠?#37928;処P灏?#37828;? 10111100.10111100.000000**.********锛?#28051;鍏?#37832;?30鍙?#37922;佃剳锛孖P鐨?#37832;鍚?#28051;娈?锝?54鍙互鍒?#32513;?54鍙?#29825;?#32480;?#37832;?#38171;?30/254锛?.086锛岄噰?#25956;杩??#30838;锛屽緱鏁存暟3锛?#26473;欐牱锛屾垜浠?#32429;?#28729;?#27996;咺P鐨?#32471;?#28051;夋瑕佸?#21976;垚涓?#28051;?#28051;?#37722;?#37928;勬暟瀛?#38171;屼篃灏?#37828;?#29831;?#38171;屾妸000000**涓?#37928;?*濉?#28051;夋?#26271;瀛?#38171;?#37721;?#38003;藉1鍜?锛岃?#28051;?#23011;?#23046;?#37928;勬暟瀛楅兘涓?#28051;?#29297;锛岃嚦浜庡浠涔?#38171;屽氨闅忔垜浠?#28186;?#27996;?#38171;屽00000001锛?0000010锛?0000011锛岃浆鎹垚浜?#26473;?#37714;?#38171;屽垎鍒?#37828;?锛?锛?锛?#26473;欐牱锛?#32471;?#28051;夋?#20856;篃纭?#28729;?#27996;?#38171;?#26473;欐牱锛屽氨鍙互鎶奍P鍒嗘垚188.188.1.y锛?88.188.2.y锛?88.188.3.y锛寉澶勯殢渚垮锛?#37721;?#29781;佸湪1锝?54鑼冨洿?#31651;?#21812;锛屽苟涓?#26473;?30鍙?#37922;佃剳姣?#37721;?#37724;屾瘡鍙?#37928;処P涓?#28051;?#29297;锛屽氨鍙互浜?#37510;?</pre> </pre><img src ="http://www.67529968.com/algz/aggbug/378170.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2012-05-15 11:42 <a href="http://www.67529968.com/algz/articles/378170.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Extjs.tree.treePanel ?#22172;鍔?#37836;?#37813;nodehttp://www.67529968.com/algz/articles/376965.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Sat, 28 Apr 2012 06:36:00 GMThttp://www.67529968.com/algz/articles/376965.htmlhttp://www.67529968.com/algz/comments/376965.htmlhttp://www.67529968.com/algz/articles/376965.html#Feedback0http://www.67529968.com/algz/comments/commentRss/376965.htmlhttp://www.67529968.com/algz/services/trackbacks/376965.htmlvar node_id= Ext.getCmp('partId').getValue() 
(1)蹇?#38315;?#28729;氫綅,鏍规嵁node.id
?#25950;锛?nbsp;EXT 鏍?#37928;勮妭鐐?#28641;傛灉涓嶅睍寮,?#26271;鎹?#37828;幏鍙?#28051;嶅埌鐨? getNodeById() 鎶?#23534;傚父)锛屽?#20805;娇浣load浜嗘暟鎹?#28051;嶅睍寮鑺?#37904;瑰墠锛?#28051;?#29297;?#24143;鍙?#28051;嶅埌銆?/span>
    var node=treepanel.getNodeById(node_id);
    // treepanel.expandPath(node.getPath())
    treepanel.getSelectionModel().select(node)
    node.fireEvent('click',node)
(2)閫掑綊鏌?#37813;?涓?#30512;涓?#30512;绾仈鏌?#37813;?br />?#25950;: 铏界?#24816;兘瑙?#37712;?1)涓?#37721;?#28051;嶅?#29256;暟鎹?#37928;勯棶棰?浣?#29825;K棶閫?#25652;?#37809;?鑰?#28051;?#32510;仈鏌?#37813;炬椂?#32048;?#30512;?#30512;鎵?#28766;?#23534;.
  treepanel.getRootNode().cascade(function(n) {
if (!n.isLeaf() && !n.isLoaded()) {
n.reload();
return true;
}
if (n.attributes['id'] == Ext.getCmp('partId').getValue()) {
node = n;
treepanel.getSelectionModel().select(node)
node.fireEvent('click', node)
return false;
}
return true;
  });


]]>Myeclipse7.0鍜孧yeclipse8.5 瀹?#29761;?#37819;?#28000;?閲囩敤link鏂瑰紡)http://www.67529968.com/algz/articles/372071.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Fri, 16 Mar 2012 13:03:00 GMThttp://www.67529968.com/algz/articles/372071.htmlhttp://www.67529968.com/algz/comments/372071.htmlhttp://www.67529968.com/algz/articles/372071.html#Feedback0http://www.67529968.com/algz/comments/commentRss/372071.htmlhttp://www.67529968.com/algz/services/trackbacks/372071.html1.涓嬭浇鎵?#28214;鐨?#37819;?#28000;跺寘
2.link鏂瑰?#24532;?#35826;姞鎻?#28000;?br />?#32229;:
?#28266;D:\Program Files\MyEclipse 6.6\eclipse\links鏃?#35120;?#28051;?鏂板缓XXX.link鏂?#28000;?
?#21812;瀹?#28051;? path = D:/Program Files/MyEclipse 6.6/myeclipse_plugins(?#22172;瀹氫箟鏂?#28000;跺)/STP(鎻?#28000;?#37722;?
?#25950;:?#32320;椤昏缃矾寰?#28051;?\\鎴?span style="color: #99cc00; ">/.


Myeclipse 瀹?#29761;?#37813;鏈?#37819;?#28000;?#37832;?#28051;?#32457;?#37826;瑰紡锛?#28051;绉?#37721;互?#27967;鎺?#37824;?#37714;?瀹?#29761;呰矾寰?#28051;媆eclipse\plugins涓?#37510;?#28003;?#26473;欑?#23941;畨瑁?#37826;瑰?#24531;湪閲嶈 Myeclipse?#26882;鎻?#28000;?#26473;?#23536;?#38322;?#37826;拌銆?nbsp; 
鍙?#28598;?#28051;绉?#37828;?#37714;敤link鏂?#28000;堕摼鎺?#28729;?#29761;?#38171;?nbsp; 
1.灏?#37819;?#28000;跺?#21616;鍘?#38171;屾斁鍒?鏀?#37714;版?#24879;矾寰?#28051;?\eclipse\plugins 鏂?#28000;跺涓?#38171;?#28641;傛灉瑙?#37720;嬩箣鍚?#37722;?#37832;塸lugins鏂?#28000;跺?#29808;垯?#27967;鎺?#37824;?#37714;eclipse鏂?#28000;跺涓?#38171;?#37804;讳箣瑕佷繚璇佸惈鏈塡eclipse\plugins 褰?#23534;?#37928;勮矾寰?#38171;?#37510;?#37922;?#27996;?#26473;欐?#24879;矾寰勬槸?#25956;鏉?#28699;樻斁鎵鏈?#37819;?#28000;?#37928;?#38171;屾墍?#20114;鎺?#38013;?#29785;勮寖涓浜?#38171;屾?#26047;?#20635;垜鐨D:\plugin\axis_plugin\eclipse\plugins锛坧lugin琛?#32448;?#26473;?#37828;?#37819;?#28000;?#37826;?#28000;跺锛axis_plugin琛?#32448;?#26473;?#37828;axis鎻?#28000;?#37510;俛xis閭?#28051;?#28051;?#37819;?#28000;跺?#36776;?#24807;湪\eclipse\plugins涓?#37510;?#38171;?#38171;屽?#20635;灉鏈?#37711;?#28000;?#37819;?#28000;?#37721;湪D:\plugin涓嬩?#28616;収瑙勫垯?#32531;?#29659;鍏?#28000;?#37826;?#28000;跺銆?nbsp; 
2.?#28266;MyEclipse 瀹?#29761;呰矾寰?#28051;?#37928;\eclipse\links鏂?#28000;跺鏂?#28000;跺涓?#38171;?#28641;傛垜鐨勫湪D:\Program Files\MyEclipse 6.5\eclipse\links锛?#38171;屽缓?#29659; XXX.link鏂?#28000;?#38171;屽?#20395;xis2_plugin.link銆傜敤璁?#27996;?#37832;?#37813;撳紑?#28266;閲?#38344;紪杈?#32471;?#28051;姝?#37928;?“鏌愯矾寰?#8221;锛屽湪\eclipse?#31651;鍓?#38171;岃矾寰?#28051;?#29781;佺敤“\\”锛堝?#29111;洜鏄\瑕?#26473;?#29723;?#32471;?#37721;?#26462;?#37817;?#38171;屽?#23680;?#23338;簭涓?#38316;?#37714;?#37928;?#28051;?#29297;锛?#38171;屽?#20635;垜鐨勮矾寰勯厤缃?path=D:\\plugin\\axis_plugin 锛?#26473;欐牱绋嬪?#24531;氨?#32048;?#22172;宸辨壘璇矾寰?#28051;?\eclipse\plugins 涓?#37928;?#37819;?#28000;?#38171;?#37510;?nbsp; 
3鍒?#38340;?MyEclipse ?#30718;寰?#28051;媆eclipse\configuration涓?#37928;org.eclipse.update鏂?#28000;跺銆?nbsp; 
4鍚?#37716;MyEclipse 閫夋嫨“File->New->Other”鍙互鐪?#37714;?#28641;?#28051;嬬晫闈?nbsp; 
 
琛?#32448;?#37819;?#28000;舵?#35826;?#29363;垚鍔?#37510;?#37711;?#28000;?#37819;?#28000;朵篃鍙敤绫?#28028;?#37928;?#37826;规硶鎵?#37714;板浘鏍?#38171;屾?#26047;svn鎻?#28000;?#37721;互?#28266; 宸?#37711;锋?#24346;indow->show view ->other涓?#37813;?#37714;板浘鏍?#37510;?nbsp; 
绁?#28003;犳垚鍔?br />
浜?Myeclipse8.5
?#28266;MyEclipse鐨刣ropins鐩?#35120;?#28051;?#37826;板缓涓涓猻vn.link(ps:杩?#38322;屼粈涔?#37826;?#28000;?#37722;嶅?#23677;?#24227;紑鍚嶉兘?#30149;鍏崇郴),

閲?#38344;唴瀹规槸path=鎻?#28000;?#37928;勮矾寰?#38171;屽叾浠栫被浼Myeclipse7.5



]]>
javascript涓?#37928;勭涓?#38171;宖alse,鍜? 姣旇?#20909;?#24878;畻鍏崇郴http://www.67529968.com/algz/articles/371885.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 14 Mar 2012 13:30:00 GMThttp://www.67529968.com/algz/articles/371885.htmlhttp://www.67529968.com/algz/comments/371885.htmlhttp://www.67529968.com/algz/articles/371885.html#Feedback1http://www.67529968.com/algz/comments/commentRss/371885.htmlhttp://www.67529968.com/algz/services/trackbacks/371885.htmljavascript涓?#37928;?绌?#28051;?#38171;宖alse,鍜?
鍖?#37722;?#27996;?#28051;涓?#26473;愮畻鐨勮?#21227;垯锛氱浉?#29905;杩愮畻绗?#37714;?#37826;椂锛?/div>
鍏?#28051;?#28051;涓?#37828;true锛屽厛杞?#37817;垚1(false?#22447;杞?#37817;?#28051;?)鍐嶅仛姣旇緝銆?nbsp;
"" == false锛岀?#26495;皢false杞寲涓?锛屽嵆锛?#37714;?#37826;?" == 0銆?/div>
绌?#28051;茶浆鎹垚?#26271;瀛?锛?==0锛屾墍?#20114; 
alert("" == false)鏄剧鐨勬槸true銆?nbsp;


]]>杞?#28000;?#29825;?#29825;?#29999;堥?#23943;偣闅剧偣---鍘?#37934;?鍙?#37934;?琛?#37934;?绉?#37934;?#29825;?#32480;?#37826;瑰紡http://www.67529968.com/algz/articles/371231.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Sun, 04 Mar 2012 14:55:00 GMThttp://www.67529968.com/algz/articles/371231.htmlhttp://www.67529968.com/algz/comments/371231.htmlhttp://www.67529968.com/algz/articles/371231.html#Feedback1http://www.67529968.com/algz/comments/commentRss/371231.htmlhttp://www.67529968.com/algz/services/trackbacks/371231.html(1)姝暟

鍘?#37934;佸拰鍙?#37934;?#38171;?#29723;?#37934;侀兘鏄?#28051;?#29297;鐨?#38171;岄兘鏄?#23005;暟鏈韩銆?/span>


(2)璐熸暟

鍘?#37934;佹槸绗?#37721;?#28003;?#28051;?,?#26271;鍊奸儴鍒?#37721;X缁?#28725;?#37706;?#37928;?#27996;?#26473;?#37714;?#37510;?/span>
鍙?#37934;佹槸绗?#37721;?#28003;?#28051;?,鍏?#28729;?#28003;?#37828;?#37720;?#37934;?#37721;?#37721;?#37510;?/span>
琛?#37934;佹槸绗?#37721;?#28003;?#28051;?,鍏?#28729;?#28003;?#37828;?#37720;?#37934;?#37721;?#37721;?#38171;?#37832;?#28003;嶅姞1銆?/span>?#31683;灏?#37828;?#29831;?#38171;岃?#29112;暟鐨勮鐮佹槸鍏?#37721;?#37934;?#37832;?#28003;嶅姞1銆?/span>

姝?#29840;??#20824;涓? 000.

(3) 绉?#37934;?/span>

灏?#37828;?#28751;?#32471;?#37721;?#28003;?#37721;?#37721;?#37928;勮鐮?鏃?#29825;?#23005;暟鍜岃?#29112;暟,0闄?#28598;?0鐨勮鐮佸拰绉?#37934;佺浉鍚?

?#31683;鍙互?#24714;瑙垚:涓嶇畻绗?#37721;?#28003;嶅,鏈楂樻暟鎹?#28003;?#37928;?#26473;?#28003;?鏈楂樻暟鎹?#28003;?#28051;?,绗?#37721;?#28003;?#28051;?;涓?,绗?#37721;?#28003;?#28051;?.

?#32229;:

鍘?#37934;? 鍙?#37934;? 琛?#37934;? 绉?#37934;?/p>

+0 0 000 0 000 0 000 1 000

-0 1 000 1 111 0 000 0 000

1011 鍘?#37934;?#38171;?1011 鍙?#37934;?#38171;?1011 //姝暟?#26882;锛?#37721;?#37934;?#38171;?#37720;?#37934;?琛?#37934;?#38171;?1011 //姝暟?#26882;锛?#29723;?#37934;?#38171;?#37720;?#37934;?绉?#37934;?#38171;?1011 //鍘熸暟+10000 锛?011 鍘?#37934;?#38171;?1011 鍙?#37934;?#38171;?0100 //璐熸暟?#26882;锛?#37721;?#37934;?#28051;哄師鐮?#37721;?#37721;?琛?#37934;?#38171;?0101 //璐熸暟?#26882;锛?#29723;?#37934;?#28051;哄師鐮?#37721;?#37721;?#38171;? 绉?#37934;?#38171;?0101 //鍘熸暟+10000 0锛?101 鍘?#37934;?#38171;?.1101 鍙?#37934;?#38171;?.1101 //姝暟?#26882;锛?#37721;?#37934;?#38171;?#37720;?#37934;?琛?#37934;?#38171;?.1101 //姝暟?#26882;锛?#29723;?#37934;?#38171;?#37720;?#37934;?绉?#37934;?#38171;?.1101 //鍘熸暟+1 锛?锛?101 鍘?#37934;?#38171;?.1101 鍙?#37934;?#38171;?.0010 //璐熸暟?#26882;锛?#37721;?#37934;?#28051;哄師鐮?#37721;?#37721;?琛?#37934;?#38171;?.0011 //璐熸暟?#26882;锛?#29723;?#37934;?#28051;哄師鐮?#37721;?#37721;?#38171;? 绉?#37934;?#38171;?.0010 //鍘熸暟+1



]]>
杞?#28000;?#29825;?#29825;?#29999;堥?#23943;偣闅剧偣---纾佺洏鏍煎?#24531;寲瀹?#38322;?闈炴?#29006;?#24531;寲瀹?#38322;??#26271;鎹?#28028;?#26440;?#37916;?#29825;?#32480;?/title><link>http://www.67529968.com/algz/articles/371179.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Sat, 03 Mar 2012 13:22:00 GMT</pubDate><guid>http://www.67529968.com/algz/articles/371179.html</guid><wfw:comment>http://www.67529968.com/algz/comments/371179.html</wfw:comment><comments>http://www.67529968.com/algz/articles/371179.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.67529968.com/algz/comments/commentRss/371179.html</wfw:commentRss><trackback:ping>http://www.67529968.com/algz/services/trackbacks/371179.html</trackback:ping><description><![CDATA[<p> </p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">闈炴?#29006;?#24531;寲瀹?#38322;?  =   浣嶅瘑搴?#215;?#21812;鍦?#37723;?#38336;?#215;姣忛潰纾?#38316;撴暟×璁板綍闈暟 </span><br style="font-family: simsun; line-height: 23px; text-align: left; " /><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">      鏍煎?#24531;寲瀹?#38322;?  =   鎵囧尯澶?#28751;?#215;姣忕閬撴?#22247;?#28888;暟×姣忛潰纾?#38316;撴暟×璁板綍闈暟 </span><br style="font-family: simsun; line-height: 23px; text-align: left; " /><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">      ?#26271;鎹?#28028;?#26440;?#37916;?  =   鎵囧尯澶?#28751;?#215;姣忕閬撴?#22247;?#28888;暟×杞?#38315;?  </span> <br /></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; ">璁?#32480;?#28729;?#38322;忔椂,鍗?#28003;嶅簲缁?#28051;.CM鎹垚MM;MB鎹垚KB; 浣嶈浆鎹垚瀛楄妭=闄互8.<br /></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; ">(1)鍗?#29825;板綍闈?#32446;?#38316;撴暟=纾?#38316;?#28725;?#25652;?span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(鐩?#38344;?#28598;?#37719;?#23536;?鐩?#38344;唴鍗?#23536;?</span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(2)闈炴?#29006;?#24531;寲瀹?#38322;?</span> 璁板綍<span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">浣嶅瘑搴?/span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">?#21812;鍦?#37723;?#38336;?/span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">鍗?#29825;板綍闈?#32446;?#38316;撴暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">璁板綍闈暟</span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">鎬荤閬撴暟= </span> <span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">鍗?#29825;板綍闈?#32446;?#38316;撴暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">璁板綍闈暟</span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 22px; background-color: #ffffff; ">?#21812;鍦?#37723;?#38336;?3.14*?#21812;鍦嗙洿寰?<span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 26px; white-space: pre-wrap; ">2</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><a href="http://wenwen.soso.com/z/Search.e?sp=S%E5%9C%86%E5%91%A8%E7%8E%87&ch=w.search.yjjlink&cid=w.search.yjjlink" target="_blank" style="color: #005599; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; line-height: 26px; white-space: pre-wrap; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #005599; ">鍦?#37723;?#37916;?/a><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 26px; white-space: pre-wrap; ">鍗?#23536;?= 鍦?#37723;?#37916;?/span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 26px; white-space: pre-wrap; ">?#27967;寰?/span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 22px; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(3)鏍煎?#24531;寲瀹?#38322;?璁板綍闈暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">鍗?#29825;板綍闈?#32446;?#38316;撴暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">姣?#28051;?#32446;?#38316;撴?#22247;?#28888;暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">鎵囧尯瀛楄?#20635;暟</span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 22px; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(4)涓涓?#32446;?#38316;撳?#27194;偍鐨勫?#26948;?#20635;暟=纾佺?#27195;?#22247;?#28888;暟</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">鎵囧尯瀛楄妭</span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 22px; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(5)?#26271;鎹?#28028;?#26440;?#37916;?</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">姣忕閬撴?#22247;?#28888;暟×</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">鎵囧尯澶?#28751;?#215;</span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: simsun; line-height: 23px; text-align: left; ">杞?#38315;?/span> </p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 22px; background-color: #ffffff; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">(6)骞冲?#22249;瓑寰呮椂?#26879;=纾佺?#27199;浆閫熸椂?#26879;鐨?#28051;鍗?/span><br /><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.6; ">骞冲?#22247;瓨鍙栨椂?#26879;鏄?#37721;嶅簲纾佺?#27195;暟鎹搷浣?#38315;?#25652;?#37928;勬寚鏍?#38171;屽崟浣?#37828;?#23011;?#32457;?#38171;ms锛?#38171;屼粬鍖呮嫭3涓椂?#26879;娈?#38171;氬?#20914;潎瀵?#38316;撴椂?#26879;锛屽?#20914;潎瀹氫?#23942;椂?#26879;锛岃浆鍔欢杩?#38171;屽叾涓?#37722;?#38344;?#28051;?#28051;?#32513;?#32457;?#28051;虹瓑寰呮椂?#26879;銆?/span></p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; "> </p><p style="margin-top: 0.7em; margin-right: 0.7em; margin-bottom: 0.7em; margin-left: 0.7em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #545454; font-family: Tahoma; line-height: 1.6; background-color: #ffffff; "><font size="4"><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; color: #ff0000; "><font color="#000000" face="Arial">涓句緥锛?br />鍋?#29825;?#28051;涓?#37832;?涓?#37929;?#37911;?#37928;勭鐩?#38171;屽叡鏈?涓?#29825;板綍闈?#38171;岃浆閫?#28051;?200/鍒嗛挓锛?#37929;?#38344;?#37832;?#37825;?#29825;板綍鍖哄煙鐨勫?#26667;洿寰?#28051;?0CM锛屽唴?#27967;寰?#28051;?0CM锛岃?#26495;綍浣嶅瘑搴?#28051;?50浣?MM锛岀閬?#28725;?#25652;?#28051;?閬?mm锛屾瘡涓?#32446;?#38316;?#37714;?6鎵囧尯锛屾瘡鎵囧尯512瀛楄妭銆?/font></span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; color: #ff0000; "></span><br /></font>鎬荤閬撴暟锛欳t=纾佺洏闈暟*(澶栫洿寰??#21812;?#27967;寰?/2*纾?#38316;?#28725;?#25652;?4*(30-10)*10/2*8=3200<br />闈炴?#29006;?#24531;寲瀹?#38322;?#38171;欳uf=鎬荤閬撴暟*?#21812;寰勭閬?#37723;?#38336;?浣嶅瘑搴?3200*(3.14*10*10)*(250/8)瀛楄妭=29.95M<br />鏍煎?#24531;寲瀹?#38322;?#38171;欳f=鎬荤閬撴暟×姣?#37813;囧?#28888;暟×姣?#37813;囧尯瀛楄?#20635;暟=4*=25M<br />骞冲?#22248;暟鎹?#28028;?#26440;?#38315;?#37916;?#38171;欳g锛?#23011;忕閬撴?#22247;?#28888;暟16×姣?#37813;囧尯瀛楄?#20635;暟512KB×杞?#38315;?7200/60S)=983040=960KB/S</p> <p> </p><img src ="http://www.67529968.com/algz/aggbug/371179.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2012-03-03 21:22 <a href="http://www.67529968.com/algz/articles/371179.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>杞?#28000;?#29825;?#29825;?#29999;堥?#23943;偣闅剧偣斺旂郴缁?#37721;?#38344;?#37804;?#29825;?#32480;?/title><link>http://www.67529968.com/algz/articles/371157.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Fri, 02 Mar 2012 15:02:00 GMT</pubDate><guid>http://www.67529968.com/algz/articles/371157.html</guid><wfw:comment>http://www.67529968.com/algz/comments/371157.html</wfw:comment><comments>http://www.67529968.com/algz/articles/371157.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/algz/comments/commentRss/371157.html</wfw:commentRss><trackback:ping>http://www.67529968.com/algz/services/trackbacks/371157.html</trackback:ping><description><![CDATA[<p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><strong>杞?#28000;?#29825;?#29825;?#29999;堥?#23943;偣闅剧偣——?#37108;缁?#37721;?#38344;?#37804;?#29825;?#32480;?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#37108;缁?#37721;?#38344;?#37804;?#29825;?#32480;?#37828;?#26462;?#28000;?#29825;?#29825;?#29999;?#38000;?#29831;?#37928;?#28051;涓?#38322;嶇偣锛?#26473;?#27996;涘?#26449;嚑涔庢瘡娆?#38000;?#29831;曢兘?#32048;鑰?#37714;?#38171;屼絾杩?#28051;煡璇?#37904;?#37928;勯毦搴?#28051;嶉珮锛屼簡瑙?#37737;?#37832;?#37928;?#26473;愮畻鍏?#23534;?#38171;屽嵆鍙?#26462;?#37833;?#25652;斿銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆鍙?#38344;?#37804;?#29825;?#32480;?#28051;昏?#20345;秹鍙?#28051;?#32457;嶇郴缁?#38171;屽嵆涓茶仈?#37108;缁?#37510;佸?#24816;仈?#37108;缁?#37724;屽啑浣欑郴缁?#38171;屽叾涓?#28051;茶仈?#37108;缁?#37724;屽?#24816;仈?#37108;缁?#37928;?#37721;?#38344;?#37804;?#29825;?#32480;楅兘闈炲父绠鍗?#38171;?#37721;?#29781;?#27996;?#29785;?#37711;舵蹇?#38171;屽叕寮忓緢瀹规槗璁?#28003;?#37510;傚啑浣欑郴缁?#29781;佸?#23942;潅涓浜?#37510;傚湪瀹?#38340;?#37928;勮?#29831;曞綋涓?#38171;岃?#23536;?#37832;澶?#37928;勫氨鏄?#28051;?#39582;舵؜鍚堢郴缁?#37928;?#37721;?#38344;?#37804;?#29825;?#32480;?#37510;傛墍?#20114;瑕佹眰?#22428;浠?#28725;?#28051;茶仈?#37108;缁?#28051;?#39582;惰仈?#37108;缁?#37928;勭壒鐐规湁鍩?#37832;?#37928;?#27996;?#29785;?#38171;屽鍏?#29825;?#32480;?#37711;?#23534;?#38003;界悊瑙?#37510;?#26473;愮敤銆?#28051;?#38344;?#28751;?#28725;?#26473;?#27996;?#29825;?#32480;?#37928;勫?#29114;悊鍙?#37711;?#23534;?#26473;?#29723;?#29831;?#32513;?#37928;?#29831;存槑銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆<strong>涓茶仈?#37108;缁?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆鍋?#29825;?#28051;涓郴缁?#37922;n涓?#28699;愮郴缁?#32513;勬垚锛屽綋涓?#28000;?#35120;撴墍鏈?#37928;勫?#24878;郴缁熼兘?#20824;姝?#29999;稿伐浣滄椂锛岀郴缁熸?#23944;兘姝?#29999;稿伐浣?#38171;?#26473;欑?#23943;郴缁?#32457;?#28051;?#28051;茶仈?#37108;缁?#38171;屽?#20634;浘1鎵绀?#37510;?#37510;</p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/1.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆璁剧郴缁?#37722;?#28051;?#28699;愮郴缁?#37928;?#37721;?#38344;?#37804;?#37714;?#37714;敤R<sub>1</sub>锛孯<sub>2</sub>锛?#8230;…锛孯<sub>n</sub>琛?#32448;?#38171;屽垯?#37108;缁?#37928;?#37721;?#38344;?#37804;R=R<sub>1</sub>×R<sub>2</sub>×…×R<sub>n</sub> 銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆濡傛?#28357;郴缁?#37928;?#37722;?#28051;?#28699;愮郴缁?#37928;勫鏁堢巼鍒?#37714;敤λ<sub>1</sub>锛?#955;<sub>2</sub>锛?#8230;…锛?#955;<sub>n</sub>鏉?#29723;?#32448;?#38171;屽垯?#37108;缁?#37928;勫鏁堢巼λ=λ<sub>1</sub>×λ<sub>2</sub>×…×λ<sub>n</sub> 銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆<strong>骞惰仈?#37108;缁?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆鍋?#28641;?#28051;涓郴缁?#37922;n涓?#28699;愮郴缁?#32513;勬垚锛?#37721;?#29781;?#37832;?#28051;涓?#28699;愮郴缁?#38003;藉?#29112;甯稿伐浣?#38171;岀郴缁?#28751;辫兘姝?#29999;稿伐浣?#38171;屽?#20634;浘2鎵绀?#37510;?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/2.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆璁剧郴缁?#37722;?#28051;?#28699;愮郴缁?#37928;?#37721;?#38344;?#37804;?#37714;?#37714;敤R<sub>1</sub>锛孯<sub>2</sub>锛?#8230;…锛孯<sub>n</sub>琛?#32448;?#38171;屽垯?#37108;缁?#37928;?#37721;?#38344;?#37804;R=1锛?#38171;?锛峈<sub>1</sub>锛?#215;锛?锛峈<sub>2</sub>锛?#215;…×锛?锛峈<sub>n</sub>锛?銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆鍋?#28641;傛墍鏈?#28699;愮郴缁?#37928;勫鏁堢?#22247;潎涓?#955;锛屽垯?#37108;缁?#37928;勫鏁堢巼涓?#956;锛?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/3.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#28266;骞惰仈?#37108;缁?#28051;?#37721;?#37832;?#28051;涓?#28699;愮郴缁熸槸鐪熸?#28214;瑕佺殑锛屽叾浣檔-1涓?#28699;愮郴缁熼兘琚?#32457;?#28051;哄啑浣?#28699;愮郴缁?#37510;?#29831;郴缁?#38341;?#37931;?#21841;浣?#28699;愮郴缁熸暟閲?#37928;勫鍔?#38171;屽?#36346;?#20914;潎鏃?#37825;?#38341;滄椂?#26879;?#31683;?#32048;澧?#37716;?#37510;?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆<strong>涓?#39582;舵؜鍚堢郴缁?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆涓?#39582;舵؜鍚堢郴缁?#28729;?#38340;?#28051;?#28751;?#37828;?#28725;?#28051;茶仈?#37108;缁?#28051;?#39582;惰仈?#37108;缁?#37928;?#32513;?#37722;?#25652;旂敤銆傛垜浠湪姝互瀹炰緥璇存槑涓?#39582;舵؜鍚堢郴缁?#37928;?#37721;?#38344;?#37804;?#28641;?#28003;?#29825;?#32480;?#37510;?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#32229;1锛?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#28999;澶瀷杞?#28000;剁郴缁熸寜鍔熻兘鍙?#37714;?#37714;?#28051;?娈礟1鍜孭2銆?#28051;?#37819;?#26946;樼郴缁?#37721;?#38344;?#37804;?#38171;岃蒋浠跺簲?#25956;鍗?#28003;?#29825;?#29825;?#27996;?#28641;?#28051;嬪浘缁欏嚭鐨勮蒋浠跺啑浣?#28729;归敊缁撴瀯锛屽叾涓璓1鍜孭2鍧?#37832;?#28051;涓?#28051;?#37711;?#28729;屽叏鐩?#37722;?#37928;勫啑浣?#28598;?#28000;?#37510;傝嫢P1鐨?#37721;?#38344;犲害涓?.9锛孭2鐨?#37721;?#38344;犲害涓?.9锛屽垯鏁?#28051;郴缁?#37928;?#37721;?#38344;犲害鏄?銆?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/04.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><span style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆渚?#38315;夋嫨鐨勭?#26048;</span><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆A. 0.6561</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆B. 0.81</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆C. 0.9801</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆D. 0.9</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆璇?#26864;?#37714;?#37835;?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#32139;?#37108;缁熼噰?#25956;涓茶仈鏂瑰?#24532;椂锛屽叾鍙?#38344;犲害R鍙?#37922;?#37711;?#23534;廟=R1R2…Rn?#30512;寰?#37510;傚綋?#37108;缁熼噰?#25956;骞惰仈鏂瑰?#24532;椂锛屽叾鍙?#38344;犲害R鍙?#37922;?#37711;?#23534;廟=1-锛?-R1锛?(1-R2)…(1-Rn)?#30512;寰?#37510;?#26473;?#28051;郴缁熸?#37928;勬潵璇?#37828;?#28051;茶仈,浣?#37714;嗘垚涓?#28051;?#39582;惰仈?#20788;鍒?#37510;?#32471;?#28051;?#20788;鍒?#37928;?#37721;?#38344;犲害涓?#38171;歊1=1-(1-0.9)*(1-0.9)=0.99锛?#32471;?#27996;岄儴鍒?#37928;?#37721;?#38344;犲害?#31683;涓?#38171;歊2=0.99锛?#37813;?#20114;鏁?#28051;郴缁?#37928;?#37721;?#38344;犲害涓?#38171;歊=R1*R2=0.9801 锛孋绛旀銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆璇?#26864;?#32475;旀</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆C</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆涓?#38344;?#37928;勪緥棰?#37828;?#28766;?#27996;庡父瑙勫舰寮?#37928;?#37721;?#38344;?#37804;?#29825;?#32480;?#26864;?#38171;屽?#20635;灉鎶?#26473;欑璇?#26864;?#37712;嶆嫧楂?#28051;涓眰娆?#38171;?#37721;互銆?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#32229;2锛?/p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆1鍙?#37832;嶅姟鍣?#37510;?鍙?#28729;?#37812;锋満鍜?鍙版?#25779;嵃鏈?#37835;勬垚浜?#28051;涓?#28766;鍩?#32515;?#38171;?#28641;傚浘4鎵绀?#38171;?#37510;傚湪璇郴缁?#28051;?#38171;?#37832;嶅姟鍣?#37837;规嵁?#28999;鍙?#28729;?#37812;锋満鐨?#29831;锋眰锛屾暟鎹湪涓鍙版?#25779;嵃鏈?#28051;?#26440;撳嚭銆?#29825;?#37832;嶅姟鍣?#37510;佸悇瀹?#37812;锋満鍙?#37722;勬?#25779;嵃鏈?#37928;?#37721;?#38344;犲害鍒?#37714;?#28051;篴銆乥銆乧锛屽垯璇郴缁?#37928;?#37721;?#38344;犲害涓?銆?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/05.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆A锛巃b3c3</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆B锛巃(1-b3)(1-c2)</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆C锛巃(1-b)3(l-c)2</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆D锛巃(1-(1-b)3)(1-(l-c)2)</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆<strong>?#32229;棰?#37714;?#37835;?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#28266;璇?#26864;?#32513;欏嚭鐨勭郴缁?#28051;?#38171;屽鎴锋満?#31651;?#26879;鏄?#39582;惰仈鐨?#38171;?#28000;讳綍涓鍙?#28729;?#37812;锋?#21700;嚭鐜版晠闅?#38171;屽鍏?#28000;?#28729;?#37812;锋満?#30149;鏈?#35120;卞搷锛?#38171;屽?#23680;悊锛屾?#25779;嵃鏈轰箣?#26879;鏄篃骞惰?#26047;?#23815;郴銆?#37906;?#37722;?#38171;屽鎴锋満銆?#37832;嶅姟鍣?#37510;佹?#25779;嵃鏈轰箣?#26879;鍐?#32513;勬垚涓涓?#28051;茶?#26047;?#23815;郴銆傚洜姝?#38171;屾垜浠?#37721;互鎶?#29831;郴缁?#32480;?#23538;涓?#38171;?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/6.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆宸茬煡鏈嶅姟鍣?#37510;佸悇瀹?#37812;锋満鍙?#37722;勬?#25779;嵃鏈?#37928;?#37721;敤鎬?#37714;?#37714;?#28051;篴銆乥銆乧锛屽洜姝?#37825;?#28051;郴缁?#37928;?#37721;敤鎬?#28051;?#38171;歊=锛?-锛?-b锛?sup>3</sup>锛塧锛?-锛?-c锛?sup>2</sup>锛?a锛?-锛?-b锛?sup>3</sup>锛?#38171;?-锛?-c锛?sup>2</sup>锛?br /> <br />銆銆?#32229;棰?#32475;旀?#22294;</p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆<strong>4锛庢?#21841;浣欑郴缁?/strong></p><p style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆m妯啑浣欑郴缁?#37922;m涓?#38171;m=2n+1涓哄?#22248;暟锛?#37929;?#37722;?#37928;勫?#24878;郴缁?#37724;?#28051;涓?#29723;?#37712;冲櫒缁勬垚锛岀粡?#32323;琛?#37712;冲櫒琛?#37712;?#37722;?#38171;宮涓?#28699;愮郴缁?#28051;?#37719;犲?#27693;暟鐩?#37722;?#32513;撴?#28357;?#21230;?#25779;嚭鍙?#28003;?#28051;虹郴缁?#37928;勮?#25779;嚭锛屽?#20634;浘5鎵绀?#37510;?/p><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/7.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><span style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: left; background-color: #f5fdff; ">銆銆?#28266;m涓?#28699;愮郴缁?#28051;?#38171;?#37721;?#37832;n+1涓?#37812;n+1涓互涓?#37928;勫?#24878;郴缁熻兘姝?#29999;稿伐浣?#38171;岀郴缁?#28751;辫兘姝?#29999;稿伐浣滃苟杈撳嚭姝?#32429;?#32513;撴灉銆傚亣璁?#29723;?#37712;冲櫒鏄?#28729;屽叏鍙?#38344;?#37928;?#38171;屾瘡涓?#28699;愮郴缁?#37928;?#37721;?#38344;?#37804;?#28051;篟0锛屽垯m妯啑浣欑郴缁?#37928;?#37721;?#38344;?#37804;?#28051;?#38171;?/span><p align="center" style="font-family: Arial, Helvetica, sans-serif; line-height: 22px; background-color: #f5fdff; "><img alt="" src="http://www.233.com/NewsFiles/2012-2/6/soft/8.gif" border="0" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: top; " /></p><img src ="http://www.67529968.com/algz/aggbug/371157.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2012-03-02 23:02 <a href="http://www.67529968.com/algz/articles/371157.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>EditorGridPanel 鎺?#37714;?#37719;?#37711;?#37837;?#37928;勭紪杈?#37716;熻兘http://www.67529968.com/algz/articles/370609.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 23 Feb 2012 10:13:00 GMThttp://www.67529968.com/algz/articles/370609.htmlhttp://www.67529968.com/algz/comments/370609.htmlhttp://www.67529968.com/algz/articles/370609.html#Feedback0http://www.67529968.com/algz/comments/commentRss/370609.htmlhttp://www.67529968.com/algz/services/trackbacks/370609.html

鍏?#28003;?#37819;?#26473;?#38171;?/span>

      琛?#37837;?#32471;?#28051;鍒?#38171;?#37711;?#28729;?#37714;椾篃琛?#38171;?#28051;?#32491;诲瀷閫夋嫨鍒?#38171;岄噰?#25956;ComboBox涓虹紪杈戝櫒锛屽綋閫夋嫨?#28999;涓绫诲瀷锛?#28641;?#38171;?#32491;诲瀷1锛夋椂琛?#37837;?span style="color: #ff0000; ">褰撳墠琛?/strong>鐨勬煇浜?#37714;?#38171;?#28641;?#38171;?#32471;?鍒梸绗?鍒?#38171;?#28751;?#37721;?#28051;?#28051;?#37721;紪杈戠姸鎬?#38171;屽苟鏄剧涓?#37722;?#37928;勬牱寮?#38171;?#32491;?#28028;?#27996;button鐨刣isable锛?#37510;?/p>

       ?#32139;閫夋嫨鍏?#28729;?#32491;诲瀷锛?#28641;?#38171;?#32491;诲瀷2锛夋椂琛?#37837;?span style="color: #ff0000; ">褰撳墠琛?/strong>鐨?#28051;?#37721;紪杈?#37719;?#37711;?#37837;?#37721;?#37721;樻垚鍙紪杈?#37928;?#37510;?/p>

(1)
鏄?#37722;?#37721;紪杈戞牱寮?#37721;互?#28266;鍒?#22959;瀷鐨剅enderer涓搷浣?nbsp;

renderer : function(data, meta){ 
   if(xxx){ 
      meta.css += " x-item-disabled"; 
   } 


(2)
鏄?#37722;?#37721;紪杈戦昏緫鍙互?#28266;grid鐨刡eforeedit浜嬩欢涓?#37815;?#37812;?#37714;?#37826;?nbsp;
grid.on("beforeedit", function(e){ 
/* 
                e = { 
                    grid: this, 
                    record: r, 
                    field: field, 
                    value: r.data[field], 
                    row: row, 
                    column: col, 
                    cancel:false 
                }; 
*/ 
   if(xxx){ 
      return false; // 涓?#23005;?#38171;?#28051;?#29825;紪杈?nbsp;
   } 
}); 


]]>
[杞琞 JSON-lib妗?#37835;?#38171;岃浆鎹JSON銆乆ML涓嶅?#23941;?#20276;毦http://www.67529968.com/algz/articles/370571.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 23 Feb 2012 02:56:00 GMThttp://www.67529968.com/algz/articles/370571.htmlhttp://www.67529968.com/algz/comments/370571.htmlhttp://www.67529968.com/algz/articles/370571.html#Feedback0http://www.67529968.com/algz/comments/commentRss/370571.htmlhttp://www.67529968.com/algz/services/trackbacks/370571.html闃?#29831;诲叏鏂?/a>

]]>
JS ?#26271;缁?#28725;硅薄鐨凧ohn鏂规硶http://www.67529968.com/algz/articles/367520.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 29 Dec 2011 10:23:00 GMThttp://www.67529968.com/algz/articles/367520.htmlhttp://www.67529968.com/algz/comments/367520.htmlhttp://www.67529968.com/algz/articles/367520.html#Feedback0http://www.67529968.com/algz/comments/commentRss/367520.htmlhttp://www.67529968.com/algz/services/trackbacks/367520.html
<script type="text/javascript">
var arr = new Array(3)
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"
document.write(arr.join("."))
</script>
杈撳嚭锛?/div>
George.John.Thomas


]]>
JS 鍙岀?#26667;嚎杩愮畻绗?/title><link>http://www.67529968.com/algz/archive/2011/12/29/367518.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Thu, 29 Dec 2011 10:20:00 GMT</pubDate><guid>http://www.67529968.com/algz/archive/2011/12/29/367518.html</guid><wfw:comment>http://www.67529968.com/algz/comments/367518.html</wfw:comment><comments>http://www.67529968.com/algz/archive/2011/12/29/367518.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.67529968.com/algz/comments/commentRss/367518.html</wfw:commentRss><trackback:ping>http://www.67529968.com/algz/services/trackbacks/367518.html</trackback:ping><description><![CDATA[<div>JS 鍙岀?#26667;嚎杩愮畻绗?鏄?#37812;?#23011;旇緝.濡俷ull||'1',杩斿洖'1';'2'||'1',杩斿洖'2'.鍗虫垨杩愮畻绗?#28051;?绗?#28051;涓?#28051;虹湡,鍚?#38344;?#37928;勫氨涓嶇敤璁?#32480;?#27996;?鎵?#20114;寰?2'.鍝堝搱.</div><img src ="http://www.67529968.com/algz/aggbug/367518.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2011-12-29 18:20 <a href="http://www.67529968.com/algz/archive/2011/12/29/367518.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>杩?#37818;?#28699;?#32471;?#28051;蹭唬鐮?鍐?#37928;?#28051;嶉敊)http://www.67529968.com/algz/articles/366904.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 21 Dec 2011 02:01:00 GMThttp://www.67529968.com/algz/articles/366904.htmlhttp://www.67529968.com/algz/comments/366904.htmlhttp://www.67529968.com/algz/articles/366904.html#Feedback0http://www.67529968.com/algz/comments/commentRss/366904.htmlhttp://www.67529968.com/algz/services/trackbacks/366904.html    public static String join(Object array[], String separator)
    {
        if(array == null)
            return null;
        if(separator == null)
            separator = "";
        int arraySize = array.length;
        int bufSize = arraySize != 0 ? arraySize * ((array[0] != null ? array[0].toString().length() : 16) + (separator == null ? 0 : separator.length())) : 0;
        StringBuffer buf = new StringBuffer(bufSize);
        for(int i = 0; i < arraySize; i++)
        {
            if(separator != null && i > 0)
                buf.append(separator);
            if(array[i] != null)
                buf.append(array[i]);
        }

        return buf.toString();
    }


]]>[杞琞Hibernate Annotation?#22161;绉?#37711;宠仈鏄犲皠 铏界劧鏄?#26462;浇,浣?#28000;?#32513;嗙湅杩?#37828;?#23536;?#37832;夊鍔?#37928;?http://www.67529968.com/algz/articles/366838.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 20 Dec 2011 06:10:00 GMThttp://www.67529968.com/algz/articles/366838.htmlhttp://www.67529968.com/algz/comments/366838.htmlhttp://www.67529968.com/algz/articles/366838.html#Feedback0http://www.67529968.com/algz/comments/commentRss/366838.htmlhttp://www.67529968.com/algz/services/trackbacks/366838.html
Hibernate Annotation?#22161;绉?#37711;宠仈鏄犲皠
涓瀵?#28051;(One-To-One)
?#23047;?#25956;@OneToOne?#25950;瑙缓?#29659;瀹炰綋Bean?#31651;?#26879;鐨?#28051;瀵?#28051;鍏宠仈銆?#28051;瀵?#28051;鍏宠仈鏈?#28051;?#32457;嶆儏鍐?#38171;?1).鍏宠仈鐨?#28729;炰綋?#20824;鍏?#27996;?#37722;屾牱鐨?#28051;?#38335;?#38171;?2).鍏?#28051;?#28051;涓?#28729;炰綋閫氳繃澶?#38335;?#37711;宠?#26047;埌鍙?#28051;涓?#28729;炰綋鐨?#28051;?#38335;??#25950;鎰?#29781;佹鎷?#28051;瀵?#28051;鍏宠?#26047;繀椤诲湪澶?#38335;?#37714;?#28051;婃?#35826;?#29362;敮涓绾?#37833;?锛?3).閫氳繃鍏宠?#26055;鏉?#28103;?#28699;?#28051;?#28051;?#28729;炰綋?#31651;?#26879;鐨?#26473;?#37818;?#37711;崇郴(瑕佹鎷?#28051;瀵?#28051;鍏宠?#26047;繀椤诲湪姣?#28051;涓?#28598;?#38335;?#28051;婃?#35826;?#29362;敮涓绾?#37833;?銆?/div>
 
1.鍏?#27996;?#28051;?#38335;?#37928;?#28051;瀵?#28051;鍏宠仈鏄犲皠锛?/div>
@Entity
@Table(name="Test_Body")
public class Body {
   private Integer id;
   private Heart heart;
   @Id
   public Integer getId() {
      return id;
   }
   public void setId(Integer id) {
      this.id = id;
   }
   @OneToOne
   @PrimaryKeyJoinColumn
   public Heart getHeart() {
      return heart;
   }
   public void setHeart(Heart heart) {
      this.heart = heart;
   }
}
@Entity
@Table(name="Test_Heart")
public class Heart {
   private Integer id;
   @Id
   public Integer getId() {
      return id;
   }
   public void setId(Integer id) {
      this.id = id;
   }
}
閫氳繃@PrimaryKeyJoinColumn鎵规敞瀹氫箟浜?#28051;瀵?#28051;鍏宠仈
 
2.?#23047;?#25956;澶?#38335;?#26473;?#29723;屽?#28848;綋涓瀵?#28051;鍏宠仈锛?/div>
@Entity
@Table(name="Test_Trousers")
public class Trousers {
   @Id
   public Integer id;
   @OneToOne
   @JoinColumn(name = "zip_id")
   public TrousersZip zip;
}
@Entity
@Table(name="Test_TrousersZip")
public class TrousersZip {
   @Id
   public Integer id;
   @OneToOne(mappedBy = "zip")
   public Trousers trousers;
}
涓?#38344;?#37928;勪緥瀛?#37828;?#37816;嘥rousers閫氳繃Trousers鐨勫閿?#37714;zip_id鍜孴rousersZip鍏宠仈锛孈JoinColumn鎵规敞瀹氫箟浜嗚仈鎺?#37714;?#38171;?#29831;?#37813;规敞鍜孈Column鎵规敞鏈?#37904;?#32491;?#28028;?#38171;屼絾鏄?#28598;?#27996;?#28051;涓?#37722;?#28051;簉eferencedColumnName鐨?#37721;傛暟銆?#29831;?#37721;傛暟瀹氫箟浜?#37813;鍏宠仈鐩?#37837;?#28729;炰綋涓?#37928;勮仈鎺?#37714;?#38171;屾敞鎰?#38171;屽綋referencedColumnName鍏宠?#26047;埌闈?#28051;?#38335;?#37714;?#37928;勬椂鍊?#38171;屽叧?#20168;鐨勭洰鏍?#32491;诲繀椤诲疄鐜癝erializable锛?#26473;樿?#20345;敞鎰?#37928;勬槸鎵鏄犲儚鐨勫睘鎬?#28725;?#25652;斿崟涓?#37714;?#38171;?#37722;垯鏄犲?#21228;棤鏁?#38171;?/div>
涓瀵?#28051;鍏宠仈鍙兘鏄?#37721;屽悜鐨?#38171;屽湪鍙屽悜鍏宠仈涓?#38171;?#37832;?#28051;?#28000;?#37832;?#28051;绔?#28003;?#28051;?#28051;讳綋锛坥wner锛夌瀛樺湪锛?#28051;讳綋绔?#29840;熻矗缁存姢?#20168;鎺?#37714;?#38171;?#37719;虫洿鏂?#38171;?#38171;屽浜?#28051;嶉渶瑕佺?#23384;姢杩欑鍏崇郴鐨?#28000;?#29723;垯閫氳繃mappedNy灞?#37804;?#26473;?#29723;屽?#29256;槑銆俶appedBy鐨勫?#37816;?#37722;?#28051;讳綋鐨?#37711;宠?#26047;睘鎬?#37510;備緥瀛?#28051;?#38171;宮appedBy鐨勫?#28051;簔ip銆?#37832;鍚?#38171;?#28051;嶅繀?#31683;涓嶈?#34249;?#23941;湪琚?#37711;宠仈绔?#38171;坥wnedside锛?#28729;氫?#22798;仈鎺?#37714;?#27996;?#38171;屽洜涓哄?#33580;粡?#28266;涓讳綋绔?#28601;版槑浜?#37510;?/div>
濡傛灉?#28266;涓讳?#25780;病鏈?#28601;版槑@JoinColumn锛岀郴缁熻嚜鍔?#26473;?#29723;屽?#21229;悊锛氬湪涓昏锛坥wner table锛?#28051;?#28751;?#37714;涘缓?#20168;鎺?#37714;?#38171;屽垪鍚?#28051;?#38171;?#28051;讳綋鐨?#37711;宠?#26047;睘鎬?#37722;?涓?#37714;?#32510;?琚?#37711;宠仈绔?#37928;?#28051;?#38335;?#37714;?#37722;?#37510;?#28051;?#38344;?#37928;勪緥瀛?#28051;?#37828;zip_id,?#27932;涓Trousers涓?#37928;?#37711;宠?#26047;睘鎬?#37722;?#28051;簔ip锛孴rousersZip鐨?#28051;?#38335;?#37828;id銆?/div>
 
3.閫氳繃鍏宠?#26055;瀹氫箟涓瀵?#28051;鍏宠仈
@Entity
@Table(name="Test_People")
public class People {
   @Id
   public Integer id;
   @OneToOne
   @JoinTable(name ="TestPeoplePassports",
      joinColumns =@JoinColumn(name="people_fk"),
      inverseJoinColumns =@JoinColumn(name="passport_fk")
   )
   public Passport passport;
}
@Entity
@Table(name="Test_Passport")
public class Passport {
   @Id
   public Integer id;
   @OneToOne(mappedBy = "passport")
   public People people;
}
People閫氳繃鍚?#28051;TestPeoplePassports鐨?#37711;宠?#26055;鍜孭assport鍏宠仈銆?#29831;?#37711;宠?#26055;鎷?#37832;?#37722;?#28051;簆assport_fk鐨勫閿?#37714;?#38171;?#29831;?#28598;?#38335;?#37816;?#37722;慞assport琛?#38171;?#29831;?#28103;?#37805;?#28729;氫箟涓inverseJoinColoumns鐨勫睘鎬?#37706;?#38171;岃宲eople_fk澶?#38335;?#37714;?#37816;?#37722;慞eople琛?#38171;?#29831;?#28103;?#37805;?#28729;氫箟涓joinColumns鐨勫睘鎬?#37706;?#37510;?/div>
杩欑鍏宠仈鍙兘鏄?#37721;屽悜鐨?#38171;屽湪鍙屽悜鍏宠仈涓?#38171;?#37832;?#28051;?#28000;?#37832;?#28051;绔?#28003;?#28051;?#28051;讳綋锛坥wner锛夌瀛樺湪锛?#28051;讳綋绔?#29840;熻矗缁存姢?#20168;鎺?#37714;?#38171;?#37719;虫洿鏂?#38171;?#38171;屽浜?#28051;嶉渶瑕佺?#23384;姢杩欑鍏崇郴鐨?#28000;?#29723;垯閫氳繃mappedNy灞?#37804;?#26473;?#29723;屽?#29256;槑銆俶appedBy鐨勫?#37816;?#37722;?#28051;讳綋鐨?#37711;宠?#26047;睘鎬?#37510;備緥瀛?#28051;?#38171;宮appedBy鐨勫?#28051;簆assport銆?#37832;鍚?#38171;?#28051;嶅繀?#31683;涓嶈?#34249;?#23941;湪琚?#37711;宠仈绔?#38171;坥wnedside锛?#28729;氫?#22798;仈鎺?#37714;?#27996;?#38171;屽洜涓哄?#33580;粡?#28266;涓讳綋绔?#28601;版槑浜?#37510;?/div>
?#20114;涓?#37828;?#28051;瀵?#28051;鍏宠仈鐨?#28051;?#32457;嶅舰寮?#38171;?#28051;?#38344;?#28000;?#32513;嶅瀵?#28051;鍏宠仈銆?/div>
 
 
 
澶?#28725;?#28051;(Many-to-One)
?#23047;?#25956;@ManyToOne鎵规敞鏉?#28729;?#37916;板瀵?#28051;鍏宠仈銆?/div>
@ManyToOne鎵规敞鏈?#28051;涓?#37722;?#28051;簍argetEntity鐨?#37721;傛暟锛?#29831;?#37721;傛暟瀹氫箟浜?#37929;?#37837;?#28729;炰綋鍚?#38171;?#38315;氬父涓嶉渶瑕佸?#27691;箟璇?#37721;傛暟锛屽洜涓哄湪澶儴鍒嗘儏鍐?#28051;?#27035;樿鍊?琛?#32448;?#37711;宠?#26047;?#23815;郴鐨勫睘鎬?#32491;诲瀷)灏?#37721;互寰堝鐨勬瓒抽渶?#30512;浜?#37510;?#28051;嶈繃涓?#38344;?#26473;欑?#23942;儏鍐?#28051;?#26473;?#28051;?#37721;傛暟灏?#37828;?#23536;?#37832;?#37808;?#28052;?#27996;?#38171;氫娇?#25956;鎺?#37721;?#28003;?#28051;?#26473;斿洖鍊艰?#28051;?#37828;父瑙佺殑瀹炰綋銆?/div>
@ManyToOne(targetEntity=CompanyImpl.class)
@JoinColoumn(name=”COPM_ID”)
Public Company getCompany(){
   return company;
}
澶?#28725;?#28051;鐨勯厤缃?#37826;瑰紡鏈?#28051;?#32457;?#38171;?1)閫氳繃@JoinColoumn鏄犲儚(2)閫氳繃鍏宠?#26055;鐨?#37826;瑰紡鏉?#37828;犲儚
 
(1)           閫氳繃@JoinColoumn鏄犲皠
SRD Framework涓瑿ompany,Category?#32229;瀛?#38171;?/div>
Company锛?/div>
@ManyToOne
   @JoinColumn(name = "CATEGORY_OPTION_ID")
   private Category category = null;
   Category锛?/div>
@DiscriminatorValue("Category")
public class Category extends Option {
}
(2)           閫氳繃鍏宠?#26055;鏄犲皠
閫氳繃@JoinTable鎵规敞瀹氫箟鍏宠?#26055;锛?#29831;?#37711;宠?#26055;鍖?#37722;?#27996;?#37816;囧洖瀹炰綋琛?#37928;勫閿?閫氳繃@JoinTable.joinColoumns)?#20114;鍙?#37816;?#37722;?#37929;?#37837;?#28729;炰綋琛?#37928;勫閿?閫氳繃@JoinTable.inverseJoinColoumns)
@Entity
@Table(name="Test_TreeType")
public class TreeType {
   private Integer id;
   private String name;
   private ForestType forestType;
   @ManyToOne(fetch = FetchType.LAZY)
   @JoinTable(name="Test_Tree_Forest",
      joinColumns = @JoinColumn(name="tree_id"),
      inverseJoinColumns = @JoinColumn(name="forest_id") )
public ForestType getForestType() {// forestType鐨刧etter锛宻etter鏂规硶?#32320;椤诲湪杩?#38322;?#38171;屽惁?#22447;?#32048;鍑洪敊
      return forestType;
   }
   public void setForestType(ForestType forestType) {
      this.forestType = forestType;
   }
   @Id
   @GeneratedValue
   public Integer getId() {
      return id;
   }
   public void setId(Integer id) {
      this.id = id;
   }
   public String getName() {
      return name;
   }
   public void setName(String name) {
      this.name = name;
   }
}
@Entity
@Table(name="Test_ForestType")
public class ForestType {
   private Integer id;
   private String name;
   private Set<TreeType> trees;
   @OneToMany(mappedBy="forestType")
public Set<TreeType> getTrees() {// trees鐨刧etter锛宻etter鏂规硶?#32320;椤诲湪杩?#38322;?#38171;屽惁?#22447;?#32048;鍑洪敊
      return trees;
   }
   public void setTrees(Set<TreeType> trees) {
      this.trees = trees;
   }
   @Id @GeneratedValue
   public Integer getId() {
      return id;
   }
   public void setId(Integer id) {
      this.id = id;
   }
   public String getName() {
      return name;
   }
   public void setName(String name) {
      this.name = name;
   }
}
 
涓瀵?#28598;?One-to-Many)
?#23047;?#25956;@OneToMany鎵规敞鍙?#28729;氫箟涓瀵?#28598;?#37711;宠仈锛?#28051;瀵?#28598;?#37711;宠仈鍙互鏄?#37721;屽悜鍏宠仈銆?/div>
?#28266;EJB3瑙勮寖涓?#28598;?#28725;?#28051;杩欑?#22161;涔?#37804;?#37828;?#37721;屽悜鍏宠仈涓?#37928;?#28051;讳綋(owner)绔?#38171;岃?#28051;瀵?#28598;氳?#27409;鍏宠仈鎵规敞涓篅OneToMany(mappedBy...)
@Entity
Public class Troop{
   @OneToMany(mappedBy=”troop”)
Public Set<Soldier> getSoldiers(){
......
}
@Entity
Public class Soldier{
   @ManyToOne
   @JoinColumn(name=”troop_fk”)
Public Troop getTroop(){
......
}
Troop閫氳繃troop灞?#37804;?#37724;孲oldier?#32531;?#29659;涓瀵?#28598;?#37928;?#37721;屽悜鍏宠仈锛屽湪mappedBy绔?#28051;嶅繀?#31683;涓嶈?#34249;?#23941;?#27691;箟浠讳?#26336;墿?#24714;鏄犲皠銆?/div>
瀵?#27996;?#28051;瀵?#28598;?#37928;?#37721;屽悜鏄犲皠锛屽?#20635;灉瑕?#28051;瀵?#28598;氳繖涓绔?#32513;存姢鍏宠?#26047;?#23815;郴锛屼?#29371;渶瑕佸垹闄mappedBy鍏?#32497;犲?#36346;皢澶?#28725;?#28051;杩欑鐨凘JoinColoumn鐨刬nsertable鍜寀pdatabel璁?#32515;?#28051;篺alse銆?#26473;欑鏂规涓嶄細寰?#37714;?#28000;涔堟槑鏄?#37928;?#28028;樺寲锛岃?#28051;?#26473;樹細澧?#37716;?#28051;浜?#38340;勫姞鐨UPDATE璇?#37721;?#37510;?/div>
 
鍗?#37722;?#38171;?/div>
閫氳繃?#28266;琚?#37815;?#37832;?#37928;?#28729;炰綋绔?owned entity)澧?#37716;?#28051;涓?#28598;?#38335;?#37714;?#37833;?#28729;?#37916;?#28051;瀵?#28598;氬崟鍚?#37711;宠仈鏄?#23536;堝?#25123;?#20346;殑锛屼?#29112;槸涓?#37818;?#38013;?#37928;?#38171;屽缓璁?#38315;氳繃涓涓仈鎺?#29723;?#37833;?#28729;?#37916;?#26473;欑鍏宠仈(涓?#38344;細璁?#37714;?銆?/div>
@JoinColoumn鎵规敞鏉?#37819;?#26473;?#26473;欑?#23941;崟鍚?#37711;宠?#26047;?#23815;郴
@Entity
Public class Customer{
   @OneToMany
@JoinColoumn(name=”CUST_ID”)
Public Set<ticket> getTickets() {
......
}
@Entity
Public class Ticket{
   ...
}
Customer閫氳繃CUST_ID鍒?#37724;孴icket?#32531;绔嬩簡鍗?#37722;?#37711;宠?#26047;?#23815;郴
閫氳繃鍏宠?#26055;澶勭悊鍗?#37722;?#37711;宠仈锛?/div>
閫氳繃?#20168;鎺?#29723;?#28598;勭悊鍗?#37722;?#28051;瀵?#28598;?#37711;宠仈鏄?#26851;?#38315;?#37826;瑰紡锛?#26473;欑鍏宠仈閫氳繃@JoinTable鎵规敞杩?#29723;?#37819;?#26473;?/div>
@Entity
Public class Trainer{
@OneToMany
@JoinTable(
   name = "TrainedMonkeys",
   jonColumns = {@JoinColumn(name = "trainer_id")},
   inverseJoinColumns = @JoinColumn(name = "monkey_id")
   )
public Set<Monkey> getTrainedMonkeys() {
      return trainedMonkeys;
   }
......
}
@Entity
public class Monkey {
...//no bidir
}
涓?#38344;?#26473;?#28051;緥瀛?#28051;?#38171;孴rainer閫氳繃TrainedMonkeys琛?#37724;孧onkey?#32531;绔嬩簡鍗?#37722;?#37711;宠仈锛屽叾涓?#28598;?#38335;畉rainer_id鍏宠?#26047;埌Trainer(joinColoumn),鑰屽閿甿onkey_id鍏宠?#26047;埌Monkey(inversejionColoumns)
榛樿澶勭悊鏈?#37714;?#38171;?/div>
閫氳繃?#20168;鎺?#29723;?#37833;缓绔嬪崟鍚?#28051;瀵?#28598;?#37711;宠仈涓嶉渶瑕?#37819;?#26473;?#28000;讳?#26336;墿?#24714;鏄犲儚锛?#29723;?#37722;?#37922;变互涓?#28051;?#28051;儴鍒?#32513;勬垚锛?#28051;昏(ownertable)琛?#37722;?浠?#29723;?the other side table)琛?#37722;?#38171;?#37816;?#37722;?#28051;昏鐨勫閿?#37722;?#38171;?#28051;昏琛?#37722;?涓?#37714;?#32510;?涓昏涓?#38335;?#37714;?#37722;?#38171;?#37816;?#37722;?#28000;?#29723;?#37928;勫閿?#37722;?#38171;?#28051;昏鎵瀵?#25652;斿?#28848;綋鐨勫睘鎬?#37722;?涓?#37714;?#32510;?浠?#29723;?#28051;?#38335;?#37714;?#37722;?#38171;?#37816;?#37722;?#28000;?#29723;?#37928;勫閿?#28729;氫箟涓哄敮涓绾?#37833;?#38171;岀敤鏉?#29723;?#32448;?#28051;瀵?#28598;?#37928;?#37711;宠?#26047;?#23815;郴銆?/div>
@Entity
public class Trainer{
   @OneToMany
   Public Set<Tiger> getTrainedTigers(){
... ...
}
@Entity
public class Tiger{
.. ..//no bidir
}
涓?#38344;?#26473;?#28051;緥瀛?#28051;?#38171;孴rainer鍜孴iger閫氳繃?#20168;鎺?#29723;Trainer_Tiger?#32531;绔嬪崟鍚?#37711;宠?#26047;?#23815;郴锛屽叾涓?#28598;?#38335;畉rainer_id鍏宠?#26047;埌Trainer,鑰屽閿畉rainedTigers_id鍏宠?#26047;埌Tiger
 
澶?#28725;?#28598;?Many-to-Many)
?#23047;?#25956;@ManyToMany鎵规敞鍙?#28729;氫箟澶?#28725;?#28598;?#37711;宠仈锛屽?#23678;椂锛屼綘?#31683;璁?#29781;?#38315;氳繃鎵规敞@JoinTable鎻?#26473;?#37711;宠?#26055;鍜屽叧?#20168;鏉?#28000;?#37510;?#28641;傛灉鏄?#37721;屽悜鍏宠仈锛屽叾涓?#28051;娈靛繀椤诲?#27691;箟涓Owner锛?#37721;?#28051;绔繀椤诲?#27691;箟涓inverse(?#28266;瀵?#37711;宠?#26055;杩?#29723;屾洿鏂版搷浣滄椂杩?#28051;绔?#28751;?#29722;?#36423;界暐)
@Entity()
public class Employer implements Serializable {
   private Integer id;
   private Collection employees;
   @ManyToMany(
targetEntity = org.hibernate.test.annotations.manytomany.Employee.class,
      cascade = {CascadeType.PERSIST, CascadeType.MERGE}
   )
   @JoinTable(
         name = "EMPLOYER_EMPLOYEE",
         joinColumns = {@JoinColumn(name = "EMPER_ID")},
         inverseJoinColumns = {@JoinColumn(name = "EMPEE_ID")}
   )
   public Collection getEmployees() {
      return employees;
   }
...
}
@Entity()
public class Employee implements Serializable {
   @ManyToMany(
         cascade = {CascadeType.PERSIST, CascadeType.MERGE},
         mappedBy = "employees"
         targetEntity = Employer.class
   )
public Collection<Employer> getEmployers() {
      return employers;
   }
.. ..
}
@JoinTable鎵规敞瀹氫箟浜嗚仈鎺?#29723;?#37928;勮鍚?#38171;岃仈鎺?#37714;楁暟缁?#38171;屼互鍙invers?#20168;鎺?#37714;楁暟缁?#38171;屽?#24228;?#37828;?#37711;宠?#26055;涓?#37711;宠?#26047;埌Employee涓?#38335;?#37928;?#37714;?the “other side”)銆?/div>
琚?#37711;宠仈绔?#28051;嶅繀?#31683;涓嶈兘鎻?#26473;扮墿?#24714;鏄犲皠锛?#37721;渶瑕?#28051;涓?#32480;鍗?#37928;刴appedBy鍙傛暟锛?#29831;?#37721;傛暟鍖?#37722;?#27996;?#28051;讳綋绔?#37928;勫睘鎬?#37722;?#38171;?#26473;欐牱灏?#32513;?#28729;?#27996;?#37721;?#37826;?#37928;?#37711;崇郴銆?/div>
榛樿鍊?#38171;?/div>
鍜屽叾瀹冭?#31295;?#27693;?#35268;敞涓?#29297;锛屽湪澶?#28725;?#28598;?#37711;宠仈涓?#23536;堝?#27692;?#37828;嚜鍔?#37922;熸垚锛屽厷鍙屽悜澶?#28725;?#28598;?#37711;宠仈涓病鏈?#28729;氫箟浠讳?#26336;墿?#24714;鏄犲?#21228;椂锛Hibernate鏍规嵁?#20114;涓?#29785;勫垯鐢熸垚鐩?#25652;?#37928;勫?#38171;屽叧鑱旇鍚?#38171;?#28051;昏琛?#37722;?涓?#37714;?#32510;?浠?#29723;?#29723;?#37722;?#38171;屽叧鑱斿埌涓昏鐨勫閿?#37722;?#38171;?#28051;昏鍚?涓?#37714;?#32510;?涓昏涓?#37928;?#28051;?#38335;?#37714;?#37722;?#38171;屽叧鑱斿埌浠?#29723;?#37928;勫閿?#37722;?#38171;?#28051;昏涓敤浜?#37711;宠仈鐨勫睘鎬?#37722;?涓?#37714;?#32510;?浠?#29723;?#37928;?#28051;?#38335;?#37714;?#37722;?#38171;屼互涓?#29785;勫垯瀵?#27996;?#37721;屽悜涓瀵?#28598;?#37711;宠?#26047;?#23678;牱涓?#29297;銆?/div>
 
?#20114;涓?#37828;?#37825;寸悊鐨?#28051;鐐?#32480;鍗?#37928;勫嚑绉?#37828;犲皠锛?#37721;?#37721;傝僂JB3.pdf涓璓111——P131锛宧ibernate_annotation.pdf 绗?#27996;岀
?#28266;杩?#38322;屾病鏈?#37711;?#28003;?#37928;勪緥瀛?#38171;?#37832;?#23536;堝?#27692;唴瀹?#26473;橀渶瑕?#28000;?#32513;嗘煡鐪?#37826;囨銆?/div>


]]>[杞琞 鍏?#27996;oracle with table as 鍒涘缓涓存椂琛?#37928;勭敤?#30838;绀轰緥http://www.67529968.com/algz/articles/365688.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 06 Dec 2011 08:47:00 GMThttp://www.67529968.com/algz/articles/365688.htmlhttp://www.67529968.com/algz/comments/365688.htmlhttp://www.67529968.com/algz/articles/365688.html#Feedback0http://www.67529968.com/algz/comments/commentRss/365688.htmlhttp://www.67529968.com/algz/services/trackbacks/365688.html1銆亀ith table as 鐩稿綋浜庡缓涓?#28051;存椂琛?#38171;堢敤浜?#28051;涓?#29831;?#37721;?#28051;煇浜?#28051;棿缁撴灉鏀惧湪涓存椂琛?#32460;洪棿鐨凷QL璇?#37721;?#38171;?#38171;孫racle 9i 鏂板WITH璇硶锛?#37721;互灏嗘煡璇?#28051;?#37928;勫瓙鏌?#29831;?#37723;?#37722;?#38171;屾斁鍒癝ELECT璇?#37721;?#37928;?#37832;鍓?#38344;?#37510;?/span>

璇硶灏?#37828;?/span>
with tempname as (select ....)
select ...

?#32229;瀛?#38171;?/span>
with t as (select * from emp where depno=10)
select * from t where empno=xxx

with
wd as (select did,arg(salary) 骞冲?#22247;伐璧?from work group by did),
em as (select emp.*,w.salary from emp left join work w on emp.eid = w.eid)
select * from wd,em where wd.did =em.did and wd.骞冲?#22247;伐璧?gt;em.salary;



2銆?#28003;曟椂琚?#23059;?#38340;?/span>
涓存椂琛?#28051;嶉兘鏄細璇?#32513;撴潫灏辫嚜鍔?#29722;PGA娓?#38340;?#37730;? 浣唚ith as涓存椂琛?#37828;?#37836;?#29831;?#28729;屾垚鍚?#28751;?#29722;?#23059;?#38340;?#27996;?#38171;?/span>
23:48:58 SCOTT@orcl> with aa as(select * from dept)
23:57:58   2  select * from aa;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

宸茬敤?#26882;?#26879;:  00: 00: 00.12
23:58:06 SCOTT@orcl> select * from aa;
select * from aa
              *
绗?1 琛屽嚭鐜伴敊璇?
ORA-00942: 琛?#37812;?#29785;?#37733;?#28051;嶅?#27194;湪


宸茬敤?#26882;?#26879;:  00: 00: 00.02
23:58:14 SCOTT@orcl>

3銆佸氨杩?#28051;鍔熻兘鏉?#29831;?#38171;屽瓙鏌?#29831;?#28751;?#37721;互杈?#37714;板晩锛?#28051;?#28000;涔?#29781;佺敤with鍛?#38171;??#25956;with鏈?#28000;涔堝?#34249;锛?/span>
?#20824;鑳藉啓锛屼絾鎵?#29723;岃鍒?#28051;?#37722;?#37928;?#37510;傚綋鏈?#28598;?#28051;?#37929;?#28028;?#28699;愭煡璇?#37928;勬椂鍊?#38171;岀敤with鍐?#37711;?#37711;遍儴鍒?#38171;屽洜涓?#28699;愭煡璇?#32513;撴灉?#28266;?#21812;瀛?#28051;存椂琛?#28051;?#38171;屾墽琛?#37825;堢?#22247;綋鐒跺氨楂?#37727;~

4銆侀棶棰?#38171;?/span>
鏈夊紶琛暟鎹?#28641;?#28051;?#38171;?/span>
aaa 楂?/span>
bbb 浣?/span>
aaa 浣?/span>
aaa 楂?/span>
bbb 浣?/span>
bbb 楂?/span>
?#28214;瑕佸緱鍒?#28051;?#37714;?#32513;撴灉,
  楂?浣?/span>
aaa 2 1
bbb 1 2
?#26870; SQL 璇?#37721;?#37804;?#28052;堝啓锛?#38171;?/span>

绛旀锛?/span>
with tt as (
  select 'aaa' id, '楂? value from dual union all
  select 'bbb' id, '浣? value from dual union all
  select 'aaa' id, '浣? value from dual union all
  select 'aaa' id, '楂? value from dual union all
  select 'bbb' id, '浣? value from dual union all
  select 'bbb' id, '楂? value from dual)
SELECT id,
       COUNT(decode(VALUE, '楂?, 1)) 楂?
       COUNT(decode(VALUE, '浣?, 1)) 浣?/span>
  FROM tt
 GROUP BY id;
===================================================================
鎵?#28766;?#38171;?/span>
Oracle9i鏂板WITH璇硶锛?#37721;互灏嗘煡璇?#28051;?#37928;勫瓙鏌?#29831;?#37723;?#37722;?#38171;屾斁鍒癝ELECT璇?#37721;?#37928;?#37832;鍓?#38344;?#37510;?/span>

銆銆涓涓?#32480;鍗?#37928;勪緥瀛?

SQL> WITH
2 SEG AS (SELECT SEGMENT_NAME, SUM(BYTES)/1024 K FROM USER_SEGMENTS GROUP BY SEGMENT_NAME),
3 OBJ AS (SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS)
4 SELECT O.OBJECT_NAME, OBJECT_TYPE, NVL(S.K, 0) SIZE_K
5 FROM OBJ O, SEG S
6 WHERE O.OBJECT_NAME = S.SEGMENT_NAME (+)
7 ;
OBJECT_NAME OBJECT_TYPE SIZE_K
------------------------------ ------------------- ----------
DAIJC_TEST TABLE 128
P_TEST PROCEDURE 0
IND_DAIJC_TEST_C1 INDEX 128

銆銆閫氳繃WITH璇?#37721;?#28729;氫箟浜?#28051;?#28051;?#28699;愭煡璇SEG鍜孫BJ锛屽湪闅?#37722;?#37928;凷ELECT璇?#37721;?#28051;?#37721;互?#27967;鎺?#28725;?#26864;?#28729;氫箟鐨勫瓙鏌?#29831;?#26473;?#29723;屾煡璇?#37510;?#28000;?#28051;?#38344;?#37928;勪緥瀛愪篃鍙互鐪嬪嚭锛屼娇?#25956;WITH璇?#37721;?#38171;屽皢涓涓?#37718;?#37722;仛闆?#37510;佸杩?#37818;?#32475;夋搷浣淪QL娓呮櫚鐨勫?#26336;?#26495;嚭鏉?#37510;?/span>

銆銆WITH瀹氫箟鐨勫瓙鏌?#29831;?#28051;?#28000;?#37721;互?#23047;鏌?#29831;?#29831;?#37721;洿鍔?#32480;鍗?#37510;佹?#21614;櫚锛岃?#28051;WITH瀹氫箟鐨勫瓙鏌?#29831;?#26473;?#37711;锋湁?#28266;SELECT璇?#37721;?#37928;?#28000;?#37808;忓眰鍧?#37721;?#29785;佺?#21229;壒鐐?#37510;?/span>

銆銆鍗充娇鏄湪WITH鐨?#28729;氫?#22794;眰涓?#38171;屽悗瀹氫箟鐨勫瓙鏌?#29831;兘鍙互?#23047;?#25956;鍓?#38344;?#23480;茬粡瀹氫?#22794;鐨勫瓙鏌?#29831;?

SQL> WITH
2 Q1 AS (SELECT 3 + 5 S FROM DUAL),
3 Q2 AS (SELECT 3 * 5 M FROM DUAL),
4 Q3 AS (SELECT S, M, S + M, S * M FROM Q1, Q2)
5 SELECT * FROM Q3;
S M S+M S*M
---------- ---------- ---------- ----------
8 15 23 120

銆銆鍒敤WITH瀹氫?#22795;煡璇?#28051;嚭鐜板?#27693;鐨勫瓙鏌?#29831;?#26473;樿?#34249;甫鏉?#37804;兘鎻愮銆侽racle?#32048;瀵WITH杩?#29723;?#37804;兘浼樺寲锛屽綋?#28214;瑕佸?#27693;璁K棶WITH瀹氫箟鐨勫瓙鏌?#29831;椂锛孫racle?#32048;灏?#28699;愭煡璇?#37928;?#32513;撴灉鏀?#37714;?#28051;涓?#28051;存椂琛?#28051;?#38171;?#38316;?#37711;?#37722;屾牱鐨勫瓙鏌?#29831;?#28598;氭鎵?#29723;?#38171;屼?#24228;?#37832;?#37825;?#37928;勫?#24531;皯浜嗘煡璇?#37928;処O?#26271;閲?#37510;?/span>

WITH鑳界敤?#28266;SELECT璇?#37721;?#28051;?#38171;UPDATE鍜孌ELETE璇?#37721;?#28052;熸槸鏀?#37816;WITH璇硶鐨?#38171;?#37721;?#37828;渶瑕佺増鏈?#37824;?#37816;?
http://www.oracle.com.cn/viewthread.php?tid=83530

=============================================================================
with
sql1 as (select to_char(a) s_name from test_tempa),
sql2 as (select to_char(b) s_name from test_tempb where not exists (select s_name from sql1 where rownum=1))
select * from sql1
union all
select * from sql2
union all
select 'no records' from dual
       where not exists (select s_name from sql1 where rownum=1)
       and not exists (select s_name from sql2 where rownum=1);

鍐?#28051;?#28051;?#32480;鍗?#37928;勪緥瀛?/span>

with a as (select * from test)

select * from a;

鍏?#28729;?#28751;?#37828;?#37814;?#28051;澶?#21979;?#23941;?#23943;敤鍒?#37928;凷QL璇?#37721;?#37824;惧湪with as 閲?#38344;?#38171;?#37721;?#28051;涓?#37714;?#37722;?#38171;屽悗闈?#37928;勬煡璇?#28751;?#37721;互?#25956;瀹?/span>

杩欐牱瀵?#27996;?#28598;壒閲?#37928;凷QL璇?#37721;?#29863;?#37714;?#28051;涓?#28028;樺寲鐨?#28003;滅敤锛岃?#28051;?#23059;呮?#27693;槑浜?/span>


杩?#37828;?#37820;?#32497;?#37714;?#37928;勮鏂?#37826;囨璧?#37826;?璇?#23536;?#23011;旇緝鍏?浣?#37828;?#37832;汉鑻?#37826;?#37911;硅彍,杩樻病鍏?#28003;?#27996;?#29785;?#37714;?甯?#37832;?#37722;勯?#27195;鍏?#28003;?#29835;?#29835;?#26473;?#28051;獁ith
as 鐨勫?#34249;)

About Oracle WITH clause
Starting in Oracle9i release 2 we see an incorporation of the SQL-99 “WITH clause”, a tool for materializing subqueries to save Oracle from having to re-compute them multiple times.

The SQL “WITH clause” is very similar to the use of Global temporary tables (GTT), a technique that is often used to improve query speed for complex subqueries. Here are some important notes about the Oracle “WITH clause”:

   ? The SQL “WITH clause” only works on Oracle 9i release 2 and beyond.
   ? Formally, the “WITH clause” is called subquery factoring
   ? The SQL “WITH clause” is used when a subquery is executed multiple times
   ? Also useful for recursive queries (SQL-99, but not Oracle SQL)

To keep it simple, the following example only references the aggregations once, where the SQL “WITH clause” is normally used when an aggregation is referenced multiple times in a query.
We can also use the SQL-99 “WITH clause” instead of temporary tables. The Oracle SQL “WITH clause” will compute the aggregation once, give it a name, and allow us to reference it (maybe multiple times), later in the query.

The SQL-99 “WITH clause” is very confusing at first because the SQL statement does not begin with the word SELECT. Instead, we use the “WITH clause” to start our SQL query, defining the aggregations, which can then be named in the main query as if they were “real” tables:

WITH
subquery_name
AS
(the aggregation SQL statement)
SELECT
(query naming subquery_name);

Retuning to our oversimplified example, let’s replace the temporary tables with the SQL “WITH  clause”:

WITH
sum_sales AS
  select /*+ materialize */
    sum(quantity) all_sales from stores
number_stores AS
  select /*+ materialize */
    count(*) nbr_stores from stores
sales_by_store AS
  select /*+ materialize */
  store_name, sum(quantity) store_sales from
  store natural join sales
SELECT
   store_name
FROM
   store,
   sum_sales,
   number_stores,
   sales_by_store
where
   store_sales > (all_sales / nbr_stores)
;

Note the use of the Oracle undocumented “materialize” hint in the “WITH clause”. The Oracle materialize hint is used to ensure that the Oracle cost-based optimizer materializes the temporary tables that are created inside the “WITH” clause. This is not necessary in Oracle10g, but it helps ensure that the tables are only created one time.

It should be noted that the “WITH clause” does not yet fully-functional within Oracle SQL and it does not yet support the use of “WITH clause” replacement for “CONNECT BY” when performing recursive queries.

To see how the “WITH clause” is used in ANSI SQL-99 syntax, here is an excerpt from Jonathan Gennick’s great work “Understanding the WITH Clause” showing the use of the SQL-99 “WITH clause” to traverse a recursive bill-of-materials hierarchy

The SQL-99 “WITH clause” is very confusing at first because the SQL statement does not begin with the word SELECT. Instead, we use the “WITH clause” to start our SQL query, defining the aggregations, which can then be named in the main query as if they were “real” tables:

WITH
subquery_name
AS
(the aggregation SQL statement)
SELECT
(query naming subquery_name);

Retuning to our oversimplified example, let’s replace the temporary tables with the SQL “WITH” clause”:


]]>
Hibernate ?#25950;瑙?#37828;犲皠 璁?#32515;?#27035;樿鍊?#37928;勫?#20634;父鍙?#29785;?#37712;?#37826;规硶http://www.67529968.com/algz/articles/365534.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Mon, 05 Dec 2011 01:21:00 GMThttp://www.67529968.com/algz/articles/365534.htmlhttp://www.67529968.com/algz/comments/365534.htmlhttp://www.67529968.com/algz/articles/365534.html#Feedback1http://www.67529968.com/algz/comments/commentRss/365534.htmlhttp://www.67529968.com/algz/services/trackbacks/365534.html
Oracle ?#26271;鎹?#25652;?
Hibernate annotation :
@Column(name="NUMBERS",columnDefinition="NUMBER(20,3) default 0 ")
public BigDecimal getNumbers() {
return numbers;
}

寮傚父:
Caused by: org.hibernate.HibernateException: Wrong column type: NUMBERS, expected: NUMBER(20,3) default 0 
at org.hibernate.mapping.Table.validateColumns(Table.java:261)
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1083)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:116)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:317)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
... 122 more
瑙?#37712;?#37826;规硶:
@Column(name="NUMBERS",columnDefinition="number(20,3) default 0 ")
public BigDecimal getNumbers() {
return numbers;
}
鍘熷洜:hibernate ?#28266;鍒?#28729;氫箟閫?#26916;?#28051;??#26271;鎹?#25652;?#28051;?#37928;勬墍鏈?#32491;诲瀷搴?#28051;?#28751;忓啓number. hibernate?#28266;姝洿鎺?#38344;?#28725;规暟鎹?#25652;?鎵?#20114;鍖?#37714;?#28598;?#28751;忓啓.


]]>[杞琞 Oracle 璇硶?#31651; OVER (PARTITION BY ..) 鍙?#23534;绐楀?#33445;暟http://www.67529968.com/algz/articles/365263.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 01 Dec 2011 02:00:00 GMThttp://www.67529968.com/algz/articles/365263.htmlhttp://www.67529968.com/algz/comments/365263.htmlhttp://www.67529968.com/algz/articles/365263.html#Feedback0http://www.67529968.com/algz/comments/commentRss/365263.htmlhttp://www.67529968.com/algz/services/trackbacks/365263.html
oracle鐨?#37714;?#37835;?#37713;芥暟over 鍙?#23534;绐楀?#33445;暟
涓锛?#37714;?#37835;?#37713;芥暟over
Oracle浠?.1.6寮濮?#37819;?#28186;?#37714;?#37835;?#37713;芥暟锛屽垎鏋?#37713;芥暟?#25956;浜?#29825;?#32480;楀熀浜?#32513;?#37928;勬煇绉嶈仛鍚堝?#38171;屽畠鍜岃仛鍚堝?#33445;暟鐨?#28051;?#37722;屼箣澶勬槸
瀵?#27996;庢瘡涓?#32513;?#26473;斿洖澶氳锛岃岃仛鍚堝?#33445;暟瀵?#27996;庢瘡涓?#32513;?#37721;?#26473;斿洖涓琛?#37510;?nbsp;
涓?#38344;?#38315;氳繃?#22161;涓緥瀛?#37833;?#29831;存槑鍏跺簲?#25956;銆?nbsp;                                      
1锛氱粺璁煇鍟?#25652;?#37928;勮惀涓?#26864;?#37510;?nbsp;       
     date       sale
     1           20
     2           15
     3           14
     4           18
     5           30
    瑙勫垯锛?#37816;?#28598;?#32513;?#29825;?#38171;氭?#24531;?#20824;缁?#29825;?#37715;?#38344;?#37713;犲鐨勬?#26864;?br />    寰?#37714;?#37928;?#32513;撴灉锛?br />    DATE   SALE       SUM
    ----- -------- ------
    1      20        20           --1澶?nbsp;          
    2      15        35           --1澶?#38171;?澶?nbsp;          
    3      14        49           --1澶?#38171;?澶?#38171;?澶?nbsp;          
    4      18        67            .          
    5      30        97            .
     
2:缁?#29825;?#37722;勭彮?#22426;缁?#32471;?#28051;鍚?#37928;?#37722;屽淇?#37805;?/font>
    NAME   CLASS S                         
    ----- ----- ---------------------- 
    fda    1      80                     
    ffd    1      78                     
    dss    1      95                     
    cfe    2      74                     
    gds    2      92                     
    gf     3      99                     
    ddd    3      99                     
    adf    3      45                     
    asdf   3      55                     
    3dd    3      78              
   
    閫氳繃锛?nbsp;  
    --
    select * from                                                                       
    (                                                                            
    select name,class,s,rank()over(partition by class order by s desc) mm from t2
    )                                                                            
    where mm=1 
    --
    寰?#37714;?#32513;撴灉锛?br />    NAME   CLASS S                       MM                                                                                        
    ----- ----- ---------------------- ---------------------- 
    dss    1      95                      1                      
    gds    2      92                      1                      
    gf     3      99                      1                      
    ddd    3      99                      1          
   
    ?#25950;鎰?#38171;?br />    1.?#28266;?#30512;绗?#28051;鍚嶆垚缁?#37928;勬椂鍊?#38171;?#28051;嶈?#30028;敤row_number()锛屽洜涓?#28641;傛灉鍚岀彮鏈?#28051;?#28051;?#39582;?#37714;?#32471;?#28051;锛宺ow_number()鍙?#26473;斿洖涓涓?#32513;撴灉          
    2.rank()鍜宒ense_rank()鐨勫尯鍒?#37828;?#38171;?br />      --rank()鏄?#29882;?#29882;?#37818;?#25652;?#38171;?#37832;?#28051;?#28051;?#32471;?#27996;屽悕?#26882;鎺?#28051;?#37833;?#28751;?#37828;?#32471;?#37733;?#37722;?br />      --dense_rank()l鏄?#26473;?#32513;?#37818;?#25652;?#38171;?#37832;?#28051;?#28051;?#32471;?#27996;屽悕?#26882;浠嶇劧璺?#37931;绗?#28051;?#37722;?br />     
     
3.鍒?#32491;?#32513;?#29825;?(骞?#37828;剧?#36720;俊鎭?
    A   B   C                      
    -- -- ---------------------- 
    m   a   2                      
    n   a   3                      
    m   a   2                      
    n   b   2                      
    n   b   1                      
    x   b   3                      
    x   b   2                      
    x   b   4                      
    h   b   3
   select a,c,sum(c)over(partition by a) from t2                
   寰?#37714;?#32513;撴灉锛?br />   A   B   C        SUM(C)OVER(PARTITIONBYA)      
   -- -- ------- ------------------------ 
   h   b   3        3                        
   m   a   2        4                        
   m   a   2        4                        
   n   a   3        6                        
   n   b   2        6                        
   n   b   1        6                        
   x   b   3        9                        
   x   b   2        9                        
   x   b   4        9                        
  
   濡傛?#28357;敤sum锛実roup by ?#22447;鍙?#38003;藉緱鍒?br />   A   SUM(C)                            
   -- ---------------------- 
   h   3                      
   m   4                      
   n   6                      
   x   9                      
   鏃犳硶寰?#37714;B鍒楀?nbsp;      
  
锛?#38171;?#38171;?#38171;?#38171;?/font>

select * from test

?#26271;鎹?
A B C 
1 1 1 
1 2 2 
1 3 3 
2 2 5 
3 4 6 


---灏咮鏍?#28003;嶅肩浉鍚?#37928;?#28725;?#25652;?#37928;凜 鏍?#28003;嶅?#37716;?#37804;?br />select a,b,c, SUM(C) OVER (PARTITION BY B) C_Sum
from test

A B C C_SUM 
1 1 1 1 
1 2 2 7 
2 2 5 7 
1 3 3 3 
3 4 6 6 



---濡傛灉涓嶉渶瑕佸凡?#28999;涓?#37837;?#28003;?#37928;勫?#37714;嗗壊,閭?#28751;?#29781;佺敤 null

eg: 灏?#37828;?#28751;咰鐨勬爮浣嶅約ummary 鏀惧湪姣?#29723;屽悗闈?br />
select a,b,c, SUM(C) OVER (PARTITION BY null) C_Sum
from test

A B C C_SUM 
1 1 1 17 
1 2 2 17 
1 3 3 17 
2 2 5 17 
3 4 6 17

 

?#30512;涓汉宸?#29863;勫?#29371;儴闂?#23480;?#29863;?#37928;勭櫨鍒?#23011;?/span>

SQL> select * from salary;

NAME DEPT SAL
---------- ---- -----
a 10 2000
b 10 3000
c 10 5000
d 20 4000

SQL> select name,dept,sal,sal*100/sum(sal) over(partition by dept) percent from salary;

NAME DEPT SAL PERCENT
---------- ---- ----- ----------
a 10 2000 20
b 10 3000 30
c 10 5000 50
d 20 4000 100

浜?#38171;氬紑绐楀?#33445;暟           
      寮绐楀?#33445;暟鎸?#28729;?#27996;?#37714;?#37835;?#37713;芥暟宸?#28003;滅?#21228;暟鎹?#32464;?#37721;?#28598;?#28751;?#38171;?#26473;?#28051;暟鎹?#32464;?#37721;?#28598;?#28751;?#37721;兘?#32048;闅?#37931;琛?#37928;?#37721;樺寲鑰?#37721;樺寲锛?#28051;句緥濡?#28051;?#38171;?nbsp;
1锛?nbsp;    
   over锛坥rder by salary锛?鎸夌収salary鎺?#25652;?#26473;?#29723;?#32497;?#29825;?#38171;宱rder by鏄?#28051;?#27035;樿鐨勫紑绐楀?#33445;暟
   over锛坧artition by deptno锛?#37816;夌収?#20788;闂?#37714;?#37718;?br />2锛?br />  over锛坥rder by salary range between 5 preceding and 5 following锛?br />   姣?#29723;屽搴?#37928;勬暟鎹?#32464;?#37721;?#37828;箣鍓?#29723;屽箙搴?#37706;?#28051;嶈?#21616;繃5锛屼箣鍚?#29723;屽箙搴?#37706;?#28051;嶈?#21616;繃5
   ?#32229;濡?瀵?#27996;庝互涓?#37714;?br />     aa
     1
     2
     2
     2
     3
     4
     5
     6
     7
     9
   
   sum(aa)over锛坥rder by aa range between 2 preceding and 2 following锛?br />   寰楀嚭鐨?#32513;撴灉鏄?br />            AA                       SUM
            ---------------------- ------------------------------------------------------- 
            1                       10                                                      
            2                       14                                                      
            2                       14                                                      
            2                       14                                                      
            3                       18                                                      
            4                       18                                                      
            5                       22                                                      
            6                       18                                                                
            7                       22                                                                
            9                       9                                                                 
             
   灏?#37828;?#29831;?#38171;屽浜巃a=5鐨?#28051;琛?锛宻um涓?nbsp;  5-1<=aa<=5+2 鐨?#37724;?br />   瀵?#27996;巃a=2鏉?#29831;?锛宻um=1+2+2+2+3+4=14     锛?br />   鍙?#28641;?瀵?#27996;巃a=9 锛?-1<=aa<=9+2 鍙?#37832;?涓涓暟锛屾墍?#20114;sum=9    锛?br />              
3锛?#37711;?#28729;?#38171;?br />     over锛坥rder by salary rows between 2 preceding and 4 following锛?br />          姣?#29723;屽搴?#37928;勬暟鎹?#32464;?#37721;?#37828;箣鍓?琛?#38171;屼箣鍚?琛?nbsp;
4锛?#28051;?#38344;?#28051;夋潯璇?#37721;瓑鏁?#38171;?nbsp;          
     over锛坥rder by salary rows between unbounded preceding and unbounded following锛?br />          姣?#29723;屽搴?#37928;勬暟鎹?#32464;?#37721;?#37828;?#28000;?#32471;?#28051;琛屽埌鏈鍚?#28051;琛?#38171;岀瓑鏁?#38171;?br />     over锛坥rder by salary range between unbounded preceding and unbounded following锛?br />           ?#29905;鏁?br />     over(partition by null)


]]>
[杞琞 椤?#38344;?#28051;?#29835;冪敤?#37108;缁熷父?#25956;鐨?#28725;?#29831;濇?#21979;渶瑕佺敤鍒?#37928;classidhttp://www.67529968.com/algz/articles/365132.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 29 Nov 2011 09:50:00 GMThttp://www.67529968.com/algz/articles/365132.htmlhttp://www.67529968.com/algz/comments/365132.htmlhttp://www.67529968.com/algz/articles/365132.html#Feedback0http://www.67529968.com/algz/comments/commentRss/365132.htmlhttp://www.67529968.com/algz/services/trackbacks/365132.html■鎵撳紑■ 
<input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=鎵撳紑> 
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
■鍙?#28699;?#28051;?#9632; 
<input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=鍙?#28699;?#28051;?gt;<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
■灞?#37804;?#9632; 
<input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=灞?#37804;?gt;<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
■鎵撳嵃■ 
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=鎵撳嵃><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
■鎵撳?#20276;?#21230;■ 
<input name=Button onClick=document.all.WebBrowser.ExecWB(7,1) type=button value=鎵撳嵃><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 

■椤?#38344;?#29825;?#32515;?#9632; 
<input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=椤?#38344;?#29825;?#32515;?gt;<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
■鍒锋柊■ 
<input type=button value=鍒锋柊 name=refresh onclick="window.location.reload()"> 
■瀵?#37711;?#37824;惰棌■ 
<input type="button" name="Button" value="瀵?#37711;?#37824;惰?#24531;" onClick=window.external.ImportExportFavorites(true,);> 
■瀵煎嚭鏀惰棌■ 
<input type="button" name="Button3" value="瀵煎嚭鏀惰?#24531;" onClick=window.external.ImportExportFavorites(false,);> 
■鍔?#37711;?#37824;惰棌■ 
<INPUT name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=鍔?#37711;?#37824;惰?#24531;> 
■鏁寸悊鏀惰?#24531;■ 
<INPUT name=Submit2 onclick="window.external.ShowBrowserUI(OrganizeFavorites, null)" type=button value=鏁寸悊鏀惰?#24531;> 
■鏌?#37930;嬪師鏂?#28000;?#9632; 
<INPUT name=Button onclick=window.location = "view-source:" + window.location.href type=button value=鏌?#37930;嬫簮鏂?#28000;?gt; 
■璇?#29815;璁?#32515;?#9632; 
<INPUT name=Button onclick="window.external.ShowBrowserUI(LanguageDialog, null)" type=button value=璇?#29815;璁?#32515;?gt; 
■鍓?#26473;?#9632; 
<INPUT name=Submit onclick=history.go(1) type=submit value=鍓?#26473;?gt; 
■鍚?#38315;■ 
<INPUT name=Submit2 onclick=history.go(-1) type=submit value=鍚?#38315;>

]]>
[杞琞 WebBrowser.ExecWB鐨?#28729;?#37825;?#29831;存槑http://www.67529968.com/algz/articles/365131.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Tue, 29 Nov 2011 09:48:00 GMThttp://www.67529968.com/algz/articles/365131.htmlhttp://www.67529968.com/algz/comments/365131.htmlhttp://www.67529968.com/algz/articles/365131.html#Feedback0http://www.67529968.com/algz/comments/commentRss/365131.htmlhttp://www.67529968.com/algz/services/trackbacks/365131.html
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
<input name=Button .Click=document.all.WebBrowser.ExecWB(1,1) type=button value=鎵撳紑>
<input name=Button .Click=document.all.WebBrowser.ExecWB(2,1) type=button value=鍏?#38338;?#37813;鏈?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(4,1) type=button value=鍙?#28699;?#28051;?gt; 
<input name=Button .Click=document.all.WebBrowser.ExecWB(6,1) type=button value=鎵撳嵃>
<input name=Button .Click=document.all.WebBrowser.ExecWB(6,6) type=button value=?#27967;鎺?#37813;撳嵃>
<input name=Button .Click=document.all.WebBrowser.ExecWB(7,1) type=button value=鎵撳?#20276;?#21230;>
<input name=Button .Click=document.all.WebBrowser.ExecWB(8,1) type=button value=椤?#38344;?#29825;?#32515;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(10,1) type=button value=灞?#37804;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(17,1) type=button value=鍏?#38315;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(22,1) type=button value=鍒锋柊>
<input name=Button .Click=document.all.WebBrowser.ExecWB(45,1) type=button value=鍏?#38338;?gt;
WebBrowser缁?#28000;?#37928;別xecWB鏂规硶
1. <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
2. 璋冪敤鏂规硶:
WebBrowser.ExecWB nCmdID, nCmdExecOpt, [pvaIn], [pvaOut]
3. 鍙傛暟璇存槑:
(a).nCmdID 
OLECMDID_OPEN = 1, 
OLECMDID_NEW = 2, 
OLECMDID_SAVE = 3, 
OLECMDID_SAVEAS = 4, 
OLECMDID_SAVECOPYAS = 5, 
OLECMDID_PRINT = 6, 
OLECMDID_PRINTPREVIEW = 7, 
OLECMDID_PAGESETUP = 8, 
OLECMDID_SPELL = 9, 
OLECMDID_PROPERTIES = 10, 
OLECMDID_CUT = 11, 
OLECMDID_COPY = 12, 
OLECMDID_PASTE = 13, 
OLECMDID_PASTESPECIAL = 14, 
OLECMDID_UNDO = 15, 
OLECMDID_REDO = 16, 
OLECMDID_selectALL = 17, 
OLECMDID_CLEARselectION = 18, 
OLECMDID_ZOOM = 19, 
OLECMDID_GETZOOMRANGE = 20 
OLECMDID_updateCOMMANDS = 21 
OLECMDID_REFRESH = 22 
OLECMDID_STOP = 23 
OLECMDID_HIDETOOLBARS = 24 
OLECMDID_SETPROGRESSMAX = 25 
OLECMDID_SETPROGRESSPOS = 26 
OLECMDID_SETPROGRESSTEXT = 27 
OLECMDID_SETTITLE = 28 
OLECMDID_SETDOWNLOADSTATE = 29 
OLECMDID_STOPDOWNLOAD = 30 
涓?#38344;?#37928;?#37711;?#38335;?#29831;嶉兘鍙互?#28266;娴?#29785;堝櫒鐨勮彍鍗?#38322;?#38344;?#37813;?#37714;?#28725;?#25652;?#37928;?#38315;?#26916;癸箰澶?#28729;?#28051;鐪嬪?#36776;槑?#27367;鐨勶箺 
(b).nCmdExecOpt 
OLECMDEXECOPT_DODEFAULT = 0, 
OLECMDEXECOPT_PROMPTUSER = 1, 
LECMDEXECOPT_DONTPROMPTUSER = 2, 
OLECMDEXECOPT_SHOWHELP = 3 
瀵?#27996;?#26473;?#28051;?#37721;傛暟锕?#28051;鑸?#37833;?#29831;达箰閫?灏?#37721;互浜?#37510;?/div>
4.?#29238;?#25956;:
WebBrowser.ExecWB(1,1) 鎵撳紑
WebBrowser.ExecWB(2,1) 鍏?#38338;?#37916;板湪鎵鏈?#37928;処E绐?#37721;?#38171;屽苟鎵撳紑涓涓?#37826;?#32464;?#37721;?/div>
WebBrowser.ExecWB(4,1) 淇?#28699;?#32515;戦
WebBrowser.ExecWB(6,1) 鎵撳嵃
WebBrowser.ExecWB(7,1) 鎵撳?#20276;?#21230;
WebBrowser.ExecWB(8,1) 鎵撳嵃椤?#38344;?#29825;?#32515;?/div>
WebBrowser.ExecWB(10,1) 鏌?#37930;?#26916;?#38344;?#28766;?#37804;?/div>
WebBrowser.ExecWB(15,1) 濂藉儚鏄挙閿锛?#37832;?#23536;呯璁?/div>
WebBrowser.ExecWB(17,1) 鍏?#38315;?/div>
WebBrowser.ExecWB(22,1) 鍒锋柊
WebBrowser.ExecWB(45,1) 鍏?#38338;?#32464;?#28003;?#37827;?#37819;愮
5.绀轰緥锕?/div>
(a)璋冪敤IE鐨?#8221;鍙?#28699;?#28051;?#8221;鍔熻兘鐨勭?#36720;緥锕?/div>
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<A href=".:WebBrowser.ExecWB(4,1);">Save-瀛樺偍</A>
(b)?#31905;?#32323;鏀?#37712;?#37928;勭櫥闄?#22959;?#23534;?/div>
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<body .load="showModalDialog('login_access.asp',0,'Status:NO;dialogWidth:418px;dialogHeight:288px');document.all.WebBrowser.ExecWB(45,1);">
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 
<input name=Button .Click=document.all.WebBrowser.ExecWB(1,1) type=button value=鎵撳紑>
<input name=Button .Click=document.all.WebBrowser.ExecWB(2,1) type=button value=鍏?#38338;?#37813;鏈?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(4,1) type=button value=鍙?#28699;?#28051;?gt; 
<input name=Button .Click=document.all.WebBrowser.ExecWB(6,1) type=button value=鎵撳嵃>
<input name=Button .Click=document.all.WebBrowser.ExecWB(6,6) type=button value=?#27967;鎺?#37813;撳嵃>
<input name=Button .Click=document.all.WebBrowser.ExecWB(7,1) type=button value=鎵撳?#20276;?#21230;>
<input name=Button .Click=document.all.WebBrowser.ExecWB(8,1) type=button value=椤?#38344;?#29825;?#32515;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(10,1) type=button value=灞?#37804;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(17,1) type=button value=鍏?#38315;?gt;
<input name=Button .Click=document.all.WebBrowser.ExecWB(22,1) type=button value=鍒锋柊>
<input name=Button .Click=document.all.WebBrowser.ExecWB(45,1) type=button value=鍏?#38338;?gt;


]]>hibernate 绾仈(鑱旇)鍒?#38340;?#37928;勯棶棰?/title><link>http://www.67529968.com/algz/articles/364066.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Thu, 17 Nov 2011 04:47:00 GMT</pubDate><guid>http://www.67529968.com/algz/articles/364066.html</guid><wfw:comment>http://www.67529968.com/algz/comments/364066.html</wfw:comment><comments>http://www.67529968.com/algz/articles/364066.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/algz/comments/commentRss/364066.html</wfw:commentRss><trackback:ping>http://www.67529968.com/algz/services/trackbacks/364066.html</trackback:ping><description><![CDATA[<div><div>dao.getHibernateSession().createQuery(hql).setParameter("bookid", bookid).setParameter("batch", batch).executeUpdate(); <br /><br />(1)String hql="delete from TbProduceplanaccount ppa where ppa.tbBusinessplanaccount.batch=:batch and ppa.tbProduceplanbook.id=:bookid ";<br />寮傚父:<br /><div><div>Hibernate: delete from Tb_ProducePlanAccount, Tb_BusinessplanAccount tbbusiness1_ where batch=? and ProducePlanBook_ID=?<br />2011-11-17 11:50:16,166 WARN  [JDBCExceptionReporter] SQL Error: 933, SQLState: 42000<br />2011-11-17 11:50:16,166 ERROR [JDBCExceptionReporter] ORA-00933: SQL 鍛?#28000;?#37832;?#23005;?#32429;?#32513;撴潫 <br /><br />(2)hql="delete from TbProduceplanaccount ppa where ppa in (from TbProduceplanaccount ppa where ppa.tbBusinessplanaccount.batch=:batch and ppa.tbProduceplanbook.id=:bookid)";</div><div><div><span class="Apple-style-span" style="white-space: pre;">鎵?#29723;屾?#29238;.</span></div></div></div><br />鎬?#32513;? hibernate鐨勭悊瑙?#37826;瑰紡涓庝汉涓?#37722;?涓嶈兘?#22172;鍔?#37922;熸垚瀛愭煡璇?<span style="color: #99cc00; ">?#27967;鏂版垨鍒?#38340;搷浣?#37828;?#28051;?#37711;?#29825;?#38001;旇鐨??#32320;椤?#38315;氳繃瀛愭煡璇?#37813;惧嚭?#26271;鎹?</span><br />棰?#28598;?#29831;?绾?#38001;斿垹闄?#37828;?#29781;?#29825;?#32515;?#37828;犲皠鐨?<br /><div><div></div></div></div></div><img src ="http://www.67529968.com/algz/aggbug/364066.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2011-11-17 12:47 <a href="http://www.67529968.com/algz/articles/364066.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>sql plus?#25655;浣oracel(windows骞?#37721;?鍩虹?#31651;绠鏄?#37826;版?#23340;瘒 http://www.67529968.com/algz/articles/356201.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Wed, 10 Aug 2011 03:29:00 GMThttp://www.67529968.com/algz/articles/356201.htmlhttp://www.67529968.com/algz/comments/356201.htmlhttp://www.67529968.com/algz/articles/356201.html#Feedback0http://www.67529968.com/algz/comments/commentRss/356201.htmlhttp://www.67529968.com/algz/services/trackbacks/356201.html

?#25950;:鐧诲叆SQLPLUS?#26882;鎶敊,濡?#28051;?
璇?#26440;?#37711;敤鎴?#37722;?  system
杈?#37711;?#37721;?#28000;?
ERROR:
ORA-12560: TNS: 鍗?#29825;?#38315;?#38320;嶅櫒?#25930;璇?br />鍘熷洜:
鏄疧RCAL瀹炰緥?#30149;鍚?#37716;?net [start/stop] 鏈嶅姟鍚?.涓嶭inux鐩?#37721;?涓嶅湪SQLPLUS涓?#37722;?#37716;?#28729;炰緥.

骞?#37721;? windows server 2003 Enterprise Editon , oracle 10g(10.02.00.01)

 

  1. 杩?#29723;?寮濮?>绋嬪簭\Oracle - OraDb10g_home1\?#21412;缃?#37724;?#32457;绘?#23941;伐鍏?涓?#37928;?Database Configuration Assistant"锛屽?#28056;缓涓涓暟鎹?#25652;?#37510;?
  2. 鍒涘缓?#22426;鍔?#37722;?#38171;?#26473;?#29723;?寮濮?>绋嬪簭\Oracle - OraDb10g_home1\搴旂敤绋嬪?#24531;紑鍙?涓?#37928;?SQL Plus".?#25956;鎴?#37722;?#38171;sys 瀵?#37934;?#38171;?23456 as sysdba(瀵?#37934;佸悗闈?#29781;佸姞绌?#37837;as绌?#37837;約ysdba) 涓?#37832;?#28699;?#32471;?#28051;?#38171;?#28641;傛灉鏄?#37832;?#37832;?#37721;?#28051;嶅銆?
  3. 浠?#37723;?#28000;?#37819;愮绗?#28051;嬩娇?#25956;sql*plus
    sqlplus/nolog
    conn ?#25956;鎴?#37722;?瀵?#37934;?as sysdba ?#22189;鐜?#8221;宸茶繛鎺?#8220;鍚?#28751;?#37828;垚鍔?#27996;?#37510;?br />

銆銆銆銆
銆銆鎺?#28051;?#37833;?#38171;屾垜浠湪SQL*Plus涓?#28729;炴涓涓?#38171;?#28051;烘垜浠?#28051;?#38344;?#28751;?#29781;佸仛鐨勬?#25779;?#34249;?#34425;銆?br />銆銆?#25956;system?#27365;闄?#37714;癝QL*Plus鍚?#38171;屾垜浠仛濡?#28051;嬫搷浣?杩欐?#30149;鏈夋埅鍥?#38171;?#37832;?#29831;?#32513;?#37928;?#29831;存槑)
-----------濡傜櫥闄嗘垚鍔熸1-3姝?#28051;嶅繀?#20187;锛岀洿鎺仛绗?姝?---------------
  1. SQL>create user maxuan identified by max; #鍒涘缓鍙?#28000;?#28051;簃ax鐨勭敤鎴穖axuan
  2. SQL>grant connect,resource to maxuan; #涓虹敤鎴穖axuan鎺?#37833;?
  3. SQL>conn maxuan/max; #?#20114;?#25956;鎴穖axuan杩?#29723;?#26473;?#37818;?
  4. SQL>create table test(a number); #?#32531;?#29659;涓涓?#37722;?#28051;簍est鐨勮锛?#37721;?#37832;?#28699;楁鍚?#28051;篈鐨?#28051;鍒?#38171;屾暟鎹?#32491;诲瀷涓烘暟瀛?
  5. SQL>insert into test values(1); #鎻?#37711;?#28051;鏉?#29825;板綍
  6. SQL>select * from test; #鏌?#29831;?#29825;板綍锛屾?#26882;A鍒?#37928;?#32471;?#28051;琛?#28051;?
  7. SQL>update test set a=2; #?#27967;鏀硅?#26495;綍锛屾?#26882;A鍒?#37928;?#32471;?#28051;琛屽凡鏀?#28051;?
  8. SQL>commit; #鎻?#27996;??#28266;瀹屾垚?#26271;鎹?#25652;?#37928;?#37819;?#37711;?#38171;屽垹闄?#37724;屼慨鏀规搷浣滄椂锛?#37721;?#37832;夊綋浜嬪姟鎻?#27996;?#37714;版暟鎹?#25652;撴?#23943;畻瀹屾垚銆?
  9. SQL>delete from test; #鍒?#38340;test琛?#28051;?#37813;鏈?#37928;勮?#26495;綍锛屾?#26882;test琛?#28051;病鏈?#29825;板綍
  10. SQL>roll; #?#27926;婊?#37714;?#37819;?#27996;?#37715;?#38171;屾?#26882;鍐嶆煡璇test琛?#38171;孉鍒?#32471;?#28051;琛屽?#37721;堝洖澶嶅埌2
銆銆
銆銆oracle鐨勬暟鎹?#32491;诲瀷
銆銆?#28266;?#26271;鎹?#25652;?#28051;?#37714;涘缓?#26271;鎹?#29723;?#37928;勬椂鍊?#38171;屾垜浠渶瑕佸?#27691;箟琛?#28051;?#37813;鏈?#28699;楁鐨?#32491;诲瀷锛屾暟鎹?#32491;诲瀷澶?#38007;?#37714;?#28051;?#38171;character,numberic,date,lob鍜宺aw?#29905;锛?#26473;?#27996;?#37828;?#37832;鍩?#37832;?#37928;勬暟鎹?#32491;诲瀷銆傚綋鐒跺湪oracle涓篃鍏?#29825;歌嚜瀹氫?#22795;暟鎹?#32491;诲瀷锛?br />銆銆
銆銆?#28266;oracle涓?#37819;?#28186;?#37928;character?#26271;鎹?#32491;诲瀷:
銆銆char():鍥?#28729;?#38336;?#25652;?#28699;?#32471;?#28051;?#38171;?#37832;澶?#38336;?#25652;?#28051;?000瀛楄妭锛屽?#20635;灉涓?#37816;?#28729;?#38336;?#37711;?#38171;岀?#34425;渷涓?涓?#28699;楄妭闀?#37510;?br />銆銆varchar2():鍙?#37721;?#38336;?#25652;?#37928;勫瓧绗?#28051;?#38171;?#37832;澶?#38336;?#25652;?#28051;?000瀛楄妭锛屽叿浣?#28729;氫?#22795;椂鎸囨槑鏈澶?#38336;?#25652;?#38171;?#26473;?#37724;?#32491;诲瀷鍙互鏀炬暟瀛?#37510;佸瓧姣嶄互鍙夾SCII鐮佸瓧绗?#38342;?鎴?#38000;匛BCDIC绛夋暟鎹?#25652;撶郴缁?#37818;?#37721;?#37928;勫瓧绗?#38342;?#37837;囧噯)涓?#37928;勬墍鏈?#32471;?#37721;?#37510;?#28641;傛灉?#26271;鎹?#38336;?#25652;病鏈?#26440;?#37714;?#37832;澶?#37706;?#38171;宱racle?#32048;鏍规嵁?#26271;鎹?#28598;?#28751;忚嚜鍔?#29835;冭妭瀛楁闀?#25652;?#37510;傛槸
銆銆
銆銆鏈闀跨敤鐨勬暟鎹?#32491;诲瀷銆?br />銆銆nchar():鏍规嵁瀛?#32471;?#38342;?#38000;屽畾鐨勫浐瀹?#38336;?#25652;?#28699;?#32471;?#28051;?#38171;?#37832;澶?#38336;?#25652;?000瀛楄妭銆?br />銆銆nvarchar2():鏍规嵁瀛?#32471;?#38342;?#38000;屽畾鐨?#37721;?#37721;?#38336;?#25652;?#28699;?#32471;?#28051;?#38171;?#37832;澶?#38336;?#25652;?000瀛楄妭銆?br />銆銆long:鍙?#37721;?#38336;?#28699;?#32471;?#37714;?#38171;?#37832;澶?#38336;?#25652;檺鍒?#28051;?GB锛岀敤浜?#28051;嶉渶瑕?#28003;?#28699;?#32471;?#28051;?#37820;?#32497;?#37928;勯暱涓叉暟鎹?#37510;傛绫诲瀷鏄?#28051;涓?#38316;楃涓?#37833;?#37928;勮?#28051;斿皢鏉?#28051;嶄細琚?#37824;?#37816;佺?#21228;暟鎹?#32491;诲瀷锛?#38315;愭笎琚獴LOB锛孋LOB锛孨CLOB?#29905;澶?#37928;勬暟鎹?#32491;诲瀷鎵鍙栦唬銆?br />銆銆
銆銆numberic?#26271;鎹?#32491;诲瀷?#25956;鏉?#28699;樺偍璐?#37928;?#37724;屾鐨勬?#23384;暟锛屽?#21976;暟鍜屾诞鐐瑰瀷?#26271;鎹?#38171;屽湪oracle涓?#37819;?#28186;?#37928;numberic?#26271;鎹?#32491;诲瀷锛?br />銆銆number(,):鍙?#37721;?#38336;?#37928;勬暟鍊?#37714;?#38171;屽厑璁?銆佹鍊?#37721;?#29840;?#37706;?#38171;宮鏄?#37813;鏈?#37928;?#37832;?#37825;堟暟瀛?#37928;?#28003;嶆暟锛n鏄?#28751;忔暟鐐逛互鍚?#37928;?#28003;嶆暟銆?br />銆銆
銆銆?#28266;oracle涓?#37819;?#28186;?#37928;刣ate?#26271;鎹?#32491;诲瀷:
銆銆date:缂虹?#20345;?#29006;紡鏄痙d-mon-yy(鏃?鏈?骞?
銆銆
銆銆?#28266;oracle涓?#37819;?#28186;?#37928;lob?#26271;鎹?#32491;诲瀷:
銆銆blob銆乧lob銆乶clob锛?#28051;?#32457;嶅?#28727;瀵硅薄(lob)锛岀敤鏉?#28103;?#28699;樿緝澶?#37928;勫浘褰?#37826;?#28000;?#37812;?#29999;?#37837;煎紡鐨?#37826;?#37832;?#37826;?#28000;?#38171;屽?#20483;ord鏂囨锛屼互鍙婇煶棰?#37510;?#29785;?#26864;戠瓑闈?#37826;?#37832;?#37826;?#28000;?#38171;?#37832;澶?#38336;?#37711;?#37828;?GB銆傛檿浜涙暟鎹?#28699;樺偍?#28266;?#26271;鎹?#25652;撳唴?#20788;淇?#28699;?#37510;?br />銆銆bfile:?#28266;?#26271;鎹?#25652;撳?#26669;儴淇?#28699;?#37928;勫鍨嬩簩杩?#37714;?#28725;硅薄鏂?#28000;?#38171;?#37832;澶?#38336;?#25652;?#37828;?GB锛?#26473;欑?#23941;?#26669;儴鐨LOB绫诲瀷锛?#38315;氳繃?#26271;鎹?#25652;?#29825;板綍鍙樺寲?#20751;鍐?#38171;屼絾鏄暟鎹?#37928;?#37711;?#28003;?#28103;?#28699;?#37828;湪?#26271;鎹?#25652;撳?#26669;儴杩?#29723;?#37928;?#37510;?br />銆銆
銆銆?#28266;oracle涓?#37819;?#28186;?#37928;剅aw?#26271;鎹?#32491;诲瀷:
銆銆raw():鍙?#37721;?#38336;?#27996;?#26473;?#37714;舵暟鎹?#38171;屽叿浣?#28729;氫箟瀛楁?#22443;椂?#32320;椤?#37816;囨槑鏈澶?#38336;?#25652;?#38171;?#26473;欑?#23942;?#29006;紡?#25956;鏉?#28103;?#28699;樿緝灏?#37928;勫浘褰?#37826;?#28000;?#37812;?#29999;?#37837;煎紡鐨?#37826;?#37832;?#37826;?#28000;?#38171;屽?#20903;?#29112;槸涓绉?#26440;冭佺?#21228;暟鎹?#32491;诲瀷锛屽皢琚玪ob?#26271;鎹?#32491;诲瀷鎵鍙栦唬銆?br />銆銆long raw:鍙?#37721;?#38336;?#27996;?#26473;?#37714;舵暟鎹?#38171;?#37832;澶?#38336;?#25652;?#37828;?GB锛?#37721;互?#25956;鏉?#28103;?#28699;樿緝澶?#37928;勫浘褰?#37812;?#29999;?#37837;煎紡鐨?#37826;?#37832;?#37826;?#28000;?#38171;屼互鍙婇煶棰?#37510;?#29785;?#26864;戠瓑闈?#37826;?#37832;?#37826;?#28000;?#38171;?#26473;欎?#29112;槸涓绉?#26440;冭佺?#21228;暟鎹?#32491;诲瀷锛屽皢琚玪ob?#26271;鎹?#32491;诲瀷鎵鍙栦唬銆?br />銆銆
銆銆鍏?#28729;?#37928;勬暟鎹?#32491;诲瀷锛?br />銆銆rowid:杩?#37828;oracle?#26271;鎹?#29723;?#28051;?#37928;?#28051;涓?#28028;緥锛屽畠鏄暟鎹?#29723;?#28051;?#23011;?#29723;屾暟鎹唴?#28266;鐨勫敮涓鏍?#29831;?br />銆銆integer:鏁存暟绫诲瀷
銆銆
琛?#37711;呯煡璇?#38171;?br />SQL(Structure Query Language)璇?#29815;鏄?#32513;撴?#21227;寲鏌?#29831;?#29831;?#29815;锛?#37828;暟鎹?#25652;?#37928;勬牳蹇?#29831;?#29815;锛?#37828;?#38344;?#37722;戦泦鍚?#37928;?#37819;?#26473;版?#38344;繃绋嬪寲璇?#29815;銆係QL璇?#29815;鍏?#37714;?#28051;哄?#28056;绫?#38171;氭暟鎹?#37836;?#29831;?#29831;?#29815;DQL,?#26271;鎹?#37823;嶇旱璇?#29815;DML锛屾暟鎹?#28729;氫箟璇?#29815;DDL,?#26271;鎹?#25652;?#37818;?#37714;?#29831;?#29815;DCL銆?br />銆銆
銆銆1.?#26271;鎹?#37836;?#29831;?#29831;?#29815;DQL鐨勫熀鏈?#32513;撴?#21228;槸鐢眘elect瀛?#37721;?#38171;宖rom瀛?#37721;?#38171;寃here瀛?#37721;?#32513;勬垚鐨勬煡璇?#37735;?#38171;?br />銆銆select <瀛楁鍚?#29723;?gt; from <琛?#37812;?#29785;?#37733;?#37722;?gt; where <鏌?#29831;?#37833;?#28000;?gt;
銆銆
銆銆2.?#26271;鎹?#37823;嶇旱璇?#29815;DML瀹屾垚?#28266;?#26271;鎹?#25652;?#28051;?#32429;?#28729;?#37510;佷慨鏀?#37510;佹?#35826;姞銆佸垹闄煇涓?#26271;鎹?#37706;?#37928;?#28000;诲姟(?#20114;涓?#37828;儴鍒嗗父?#25956;DML璇?#37721;?:
銆銆insert銆銆澧?#37716;犳暟鎹?#29723;屽埌琛?br />銆銆delete銆銆浠?#29723;?#28051;?#37714;?#38340;暟鎹?#29723;?br />銆銆Update銆銆?#27967;鏀?#29723;?#28051;暟鎹?br />銆銆
銆銆3.?#26271;鎹?#28729;氫箟璇?#29815;DDL瀹屾垚瀹氫?#22795;暟鎹?#25652;?#37928;?#32513;撴瀯锛屽?#21614;嫭?#26271;鎹?#25652;?#37832;韩銆佹暟鎹?#29723;?#37510;佺洰褰?#37510;?#29785;?#37733;剧?#22795;暟鎹?#25652;?#37711;?#32497;??#20114;涓?#37828;儴鍒嗗父?#25956;DDL璇?#37721;?
銆銆create table銆銆鍒涘缓琛?br />銆銆create index銆銆鍒涘缓绱?#23534;?br />銆銆create view銆銆鍒涘缓瑙?#37733;?br />銆銆alter table銆銆澧?#37716;?#29723;?#37714;?#38171;岄?#23941;?#27691;箟琛?#37714;?#38171;屾洿鏀?#28699;樺偍鍒嗛厤
銆銆drop table銆銆鍒?#38340;?#29723;?br />銆銆drop index銆銆鍒?#38340;?#32497;?#23534;?br />銆銆
銆銆4.?#26271;鎹?#25652;?#37818;?#37714;?#29831;?#29815;DCL?#25956;鏉?#37818;?#27996;?#37812;栧洖鏀?#29825;K棶?#26271;鎹?#25652;?#37928;勬煇绉嶇?#35268;潈锛屽苟鎺?#37714;舵暟鎹?#25652;撴?#23943;旱浜嬪姟鍙?#37922;?#37928;勬椂?#26879;鍙?#37825;堟灉锛屽?#35268;暟鎹?#25652;?#28729;?#29723;?#37929;戣?#21977;瓑銆?#28641;?#38171;?br />銆銆grant銆銆銆銆灏?#37833;冮檺鎴?#29785;掕壊鎺?#27996;堢敤鎴锋垨鍏?#28729;冭?#25493;壊
銆銆revoke銆銆銆銆?#27926;鏀剁敤鎴锋潈?#27322;
銆銆roll銆銆銆銆?#27926;婊?#38171;?#37828;?#35120;撴煇涓?#28725;?#29831;濇洿鏀?#27996;嗘暟鎹?#25652;?#28051;?#37928;勬暟鎹?#37722;?#38171;?#37922;?#27996;庢煇绉嶅?#29111;洜?#25956;鎴?#28051;嶆兂鎻?#27996;?#23005;洿鏀规椂锛宱racle鎵閲?#37721;?#37928;勪繚鎶搷浣?#37510;?#26473;?#37828;?#28051;涓?#37814;?#28103;?#37805;?#37805;?#28598;嶅?#25198;敤鎴蜂娇update銆乮nsert銆乨elete鍓?#37832;鍚?#37819;?#27996;?#37928;勭姸鎬?#37510;?br />銆銆commit銆銆銆銆鎻?#27996;?#37510;傚湪瀹屾垚?#26271;鎹?#25652;?#37928;?#37819;?#37711;?#38171;屽垹闄?#37724;屼慨鏀规搷浣滄椂锛?#37721;?#37832;夊綋浜嬪姟鎻?#27996;?#37714;版暟鎹?#25652;撴?#23943;畻瀹屾垚锛?#37832;?#37819;?#27996;?#37715;?#37721;?#37832;夋搷浣滄暟鎹?#25652;?#37928;?#37832;汉鎵嶈?#30028;湅鍒?#38171;屽埆?#27721;鍙?#37832;夊湪鏈鍚?#37819;?#27996;?#28729;屾垚鎵?#37721;互鐪?#37714;?#37510;?br />
銆銆涓涓?strong>璐?#37911;?#32515;戠珯鍚?#37721;版暟鎹?#25652;?/strong>瀹炰緥锛?br />銆銆鐜板湪?#22428;浠洖鍒扮敤J2EE浣撶?#35826;紑鍙戣喘鐗?#32515;戠珯鐨?#28051;?#26864;?#38171;屽紑濮?#28729;炴?#27194;缓璐?#37911;?#32515;戠珯鐨?#37722;?#37721;版暟鎹?#25652;?#37510;?br />銆銆涓?#27996;?#28729;?#37916;拌喘鐗?#32515;戠珯鐨勫熀鏈?#37928;勫?#29115;兘锛屾垜浠渶瑕佸缓绔嬪洓涓?#29723;?#38171;氬晢鍝佸垪琛?products)銆佸晢鍝佺?#35826;瀷琛?item)銆?#29825;?#37719;?#37714;?#29723;?orders)鍜岀?#24714;鍛?#37714;?#29723;?admin)銆?#29723;?#32513;撴瀯濡?#28051;?#37813;绀?#38171;?br />銆銆
銆銆item琛?#32513;撴瀯锛堝晢鍝佺?#35826;瀷琛?
銆銆瀛楁鍚嶇銆銆?#26271;鎹?#32491;诲瀷銆銆銆銆鍏?#29825;?#32460;?#37510;銆涓?#38335;?澶?#38335;?#37510;銆澶囨敞銆銆
銆銆type_id銆銆INTEGER(?#22172;鍔紪鍙?銆鍚?#37510; 涓?#38335;?#37510;銆 鍟嗗?#20346;?#35826;埆ID鏍?#29825;?br />銆銆type銆銆 varchar2(30)銆銆 鍚?#37510;銆銆 鍟嗗?#20346;?#35826;埆鍚嶇
銆銆
銆銆product琛?#32513;撴瀯(鍟嗗?#20344;垪琛?
銆銆瀛楁鍚嶇銆銆 ?#26271;鎹?#32491;诲瀷銆銆銆鍏?#29825;?#32460;?#37510;銆涓?#38335;?澶?#38335;?#37510;銆澶囨敞
銆銆product_id銆INTEGER(?#22172;鍔紪鍙?銆鍚?#37510;銆 涓?#38335;?#37510;銆鍟嗗搧ID鏍?#29825;?br />銆銆title銆銆 varchar2(30)銆銆 鍚?#37510;銆銆銆 鍟嗗?#20344;悕绉?br />銆銆type_id銆銆 INTEGER銆銆銆 鍚?#37510; 銆澶?#38335;?#37510;銆鍟嗗?#20346;?#35826;埆鏍?#29825;?br />銆銆info銆銆 varchar2(80)銆銆 鏄?#37510;銆銆銆 鍟嗗?#20346;畝浠?br />銆銆price銆 銆number(16,2)銆銆 鍚?#37510;銆銆 銆鍟嗗搧浠锋牸
銆銆
銆銆orders琛?#32513;撴瀯(璁?#37719;?#37714;?#29723;?
銆銆瀛楁鍚嶇銆銆?#26271;鎹?#32491;诲瀷銆銆銆 鍏?#29825;?#32460;?#37510;銆涓?#38335;?澶?#38335;?#37510;銆澶囨敞
銆銆order_id銆銆INTEGER(?#22172;鍔紪鍙?銆鍚?#37510;銆 涓?#38335;?#37510;銆璁?#37719;ID鏍?#29825;?br />銆銆name銆銆 varchar2(20)銆銆 鍚?#37510;銆銆銆 椤?#28729;?#28654;?#37722;?br />銆銆address銆銆 varchar2(100)銆銆 鏄?#37510;銆銆銆 鍙戣揣鍦板潃
銆銆tel銆銆 number(16)銆 鏄?#37510;銆銆銆 ?#20168;?#37108;鐢?#29831;?br />銆銆email銆銆 varchar2(30)銆 鍚?#37510;銆銆 銆?#20168;?#37108;email
銆銆btime銆銆 date銆銆銆 鏄?#37510;銆銆銆 璁?#29840;?#37827;?#37832;?br />銆銆product_id銆銆INTEGER銆銆 鍚?#37510;銆 澶?#38335;?#37510; 鍟嗗?#20345;爣璁?br />銆銆uword銆銆 varchar2(100)銆鏄?#37510;銆銆銆 椤?#28729;?#37923;欒
銆銆
銆銆admin琛?#32513;撴瀯(绠悊鍛?#37714;?#29723;?
銆銆瀛楁鍚嶇銆銆?#26271;鎹?#32491;诲瀷銆銆銆銆鍏?#29825;?#32460;?#37510;銆涓?#38335;?澶?#38335;?#37510;銆澶囨敞
銆銆admin_id銆銆INTEGER(?#22172;鍔紪鍙?銆鍚?#37510;銆 涓?#38335;?#37510;銆 绠悊鍛業D鏍?#29825;?br />銆銆adminname銆銆varchar2(20)銆銆 鍚?#37510;銆銆銆 绠悊鍛?#37722;嶇
銆銆password銆銆varchar2(20)銆銆 鍚?#37510;銆銆銆 绠悊鍛?#28725;?#37934;?br />銆銆
銆銆璁?#29825;?#28729;?#29723;?#32513;撴瀯鍚?#38171;屾垜浠?#28751;?#29781;佸紑濮?#37714;涘缓浜?#37510;?br />銆銆鍒涘缓琛垜?#20802;宸茬粡涓?#37828;?#28000;涔堥毦浜嬩簡锛岄偅涔堟垜浠?#29781;佹敞鎰?#37928;勬槸product銆乮tem銆乷rders杩?#28051;?#28051;?#29723;箣?#26879;鐨?#37711;宠仈锛?#26473;?#37832;夎嚜鍔紪鍙?#37510;?br />銆銆
銆銆涓?#38344;?#37828;?#28729;?#37825;?#37928;凷QL璇?#37721;?#38171;屽湪鍚?#38344;垜?#32048;缁欏嚭璇?#32513;?#37928;?#29831;存槑锛屼綘鍙互?#28266;SQL*Plus閲屽?#22317;収鐫杈?#37711;?#38171;屼篃鍙互灏?#28729;?#28699;?#28051;SQL鑴?#37832;?#37826;?#28000;?#38171;屽湪SQL*Plus鎴朣QLPlus Worksheet閲屾墽琛?#37510;傚綋鐒朵篃鍙互鎶婁唬鐮佺洿鎺?#37815;?#29840;?#37714;癝QL*Plus閲屾墽琛?#38171;?br />銆銆
銆銆?#21804;鐮?#38171;?br />銆銆rem ///BY MAXUAN 寮濮?//
銆銆create table item(
銆銆type_id integer not null,
銆銆type varchar2(30),
銆銆constraint item_pk primary key(type_id)
銆銆);
銆銆
銆銆create table product(
銆銆product_id integer not null,
銆銆title varchar2(30) not null,
銆銆type_id integer not null,
銆銆info varchar2(80),
銆銆price number(16,2) not null,
銆銆constraint product_pk primary key (product_id),
銆銆constraint product_fk foreign key(type_id) references item(type_id)
銆銆);
銆銆
銆銆create table orders(
銆銆order_id integer not null,
銆銆name varchar2(20) not null,
銆銆address varchar2(100),
銆銆tel number(16),
銆銆email varchar2(30) not null,
銆銆btime date,
銆銆product_id integer not null,
銆銆uword varchar2(100),
銆銆constraint orders_pk primary key(order_id),
銆銆constraint orders_fk foreign key(product_id) references product(product_id)
銆銆);
銆銆
銆銆create table admin(
銆銆admin_id integer not null,
銆銆adminname varchar2(20) not null,
銆銆password varchar2(20) not null,
銆銆constraint admin_pk primary key(admin_id)
銆銆);


]]>EOS璁?#28598;?#28051;?#37928;勫伐?#27721;鎵?#37714;板伐浣?璁?#28051;?#28051;?#37928;勬妧鏈汉鍛?#28051;嬪.http://www.67529968.com/algz/archive/2011/06/23/352855.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Thu, 23 Jun 2011 01:21:00 GMThttp://www.67529968.com/algz/archive/2011/06/23/352855.htmlhttp://www.67529968.com/algz/comments/352855.htmlhttp://www.67529968.com/algz/archive/2011/06/23/352855.html#Feedback1http://www.67529968.com/algz/comments/commentRss/352855.htmlhttp://www.67529968.com/algz/services/trackbacks/352855.html杩欐鏃?#28699;?#38171;屾櫘鍏?#37714;版垜浠?#37711;?#37721;?#37833;?#37818;?#38335;EOS锛岀?#23337;簡涓涓嬫紨绀?#38171;?#37808;?#29785;夌瀹炲仛鐨?#28051;嶉敊銆?#28729;屽叏鍩?#27996;嶦clipse锛?#28051;?#28003;?#37722;?#37721;?#38315;昏緫鍙?#29785;嗗寲锛岀?#26495;湪鍓?#37721;?#26916;?#38344;篃鍙互鍙?#29785;嗗寲寮鍙?#37510;?#26473;?#28051;?#26916;?#38344;?#37721;?#29785;嗗寲寮鍙?#28051;?#28000;?#28000;?#37816;?#37928;勬槸?#20762;DW閭牱鐨?#37721;?#29785;?#38171;屽畠闆嗘垚浜?#23536;堝?#27692;?#29115;兘銆傛?#26047;锛氶獙璇?#37721;互璁?#32515;?#38171;?#32513;?#37722;堟煡璇?#37721;互?#22172;鐢辨?#35826;姞鏉?#28000;?#38171;?#37721;?#29781;佷慨鏀?#26916;?#38344;?#38171;?#38171;屽垎椤?#37828;剧銆?#38333;?#28725;?#37719;?#29723;?#38171;屽?#27699;妯?#23534;?#38171;屽悇鏈?#37722;?#28725;?#38171;屽熀鏈?#28051;?#28051;姝?#38171;?#28051;?#28051;姝?#28751;?#37721;互浜?#37510;?#26916;?#38344;?#37828;剧瀛楁浠涔?#37928;?#38171;屽湪eclipse閲?#38344;?#29825;?#32515;?#28051;涓嬪氨鍙互浜?#37510;備篃灏?#37828;?#29831;?#28051;嶇椤?#38344;?#26473;?#37828;?#37722;?#37721;?#38171;屼?#29371;兘涓嶇敤绂诲紑eclipse鍘诲?#23678;垚锛屼互鍓?#26473;樿?#20344;紑dw锛?#37812;栧垯鏂?#37832;紪杈戝櫒鏉?#37712;?#26916;?#38344;?#38171;岀敤xmlbuddy鏉慨鏀箈ml?#21412;缃?#38171;屾?#26047;鍐?#27996;?#28051;涓猘ction,娣诲姞action?#21412;缃?#28000;涔?#37928;?#38171;岃?#28051;斿?#23677;叏鍙?#29785;?#29831;?#38171;?#26916;?#38344;箣?#26879;鐨勬?#20344;悜瀹屽叏鍙?#29785;?#29831;?#38171;屽?#20635;灉瑕?#37817;?#23092;佸埌鍙?#28598;?#28051;涓?#26916;?#38344;?#38171;屾妸绠?#28598;存媺涓鎷?#28751;?#37721;互浜?#37510;?
     鍚?#37721;?#38315;昏?#25117;湪Eclipse閲?#37721;互璋?#29831;?#37510;傝?#28051;?#37832;?#28051;涓?#37722;?#37721;?#37929;?#37818;郴缁?#38171;?#37808;?#29785;夊仛鐨?#28051;嶉敊銆?#37713;洪敊鐨?#29831;?#38171;岃?#26495;?#26335;暟鎹?#38171;宻ql锛?#26473;?#37832;夋墽琛屾椂?#26879;锛屾鍧?#28000;涔?#37928;?#38171;屽熀鏈?#28051;?#28051;嶇敤鍘绘媺log鎵?#23534;傚父浜?#38171;?#28051;鑸兘鑳界?#23338;?#27946;敊璇?#37833;?#37510;?
     ?#22172;甯?#27996;?#37833;冮檺?#37108;缁?#37510;?#38342;嗘垚浜?#23480;?#28003;?#23092;?#37510;?
     鍚?#37832;?#32513;存姢闈炲父鏂?#28186;?#38171;?#38341;?#28186;垮摢涓汉?#20824;鍙互缁存姢锛屼互鍓嶅?#20635;灉?#21804;鐮佸啓鐨?#28051;嶅锛屾壘bug?#20824;绱?#23005;讳汉锛岀?#26495;湪鍩?#37832;?#28051;?#37833;?#29831;?#37828;?#23011;旇?#20906;畝鍗?#37928;?#38171;岀帺涓嶅嚭鑺辨?#38155;潵锛屽瀹堕兘鏄?#28051;涓牱銆?
     鍙互鐢熸垚瀹?#37825;?#37928;?#37826;囨銆?#28725;?#37733;?#35120;仛鐨勬敞閲?#28000;涔?#37928;?#38171;?#37721;互瀹屽叏?#20114;htm,pdf鐨勬?#29006;紡瀵煎嚭銆?#26473;欐?#38155;枃妗?#37724;屽紑鍙?#37721;互淇?#37816;?#28051;鑷?#37510;?
     ?#20114;鍓嶆垜浠嚜宸卞熀浜ibatis,webwork,spring锛屽啓鎻?#28000;?#38315;氳繃鍔犳敞閲?#37922;熸垚浜?#23536;堝鏂?#28000;?#37833;?#28729;屾垚鍚?#37721;板紑鍙?#38171;屼絾鎰?#29785;夐?#33636;鐨勬槸鍗充娇浣?#37722;?#37721;?#37826;?#28000;?#37711;儴鐢熸垚浜?#38171;屼絾鍓?#37721;板摢浜涢摼鎺篃?#27952;荤鐨?#38171;岃?#28051;?#26473;樿璋?#29831;?#37510;傛垜灏辨兂鍐?#28051;?#37819;?#28000;?#37722;?#28725;肩敤妯?#37833;?#37833;?#28729;屾垚椤?#38344;?#37510;?#37916;板湪鐪?#37714;癊OS锛屾瘮鎴戣嚜宸辨兂?#34180;涓仛鐨?#26473;樿?#20344;銆?
     鎰?#29785;?#28725;?#27996;?#28051;?#37828;?#23536;堝?#23942;潅鐨勭郴缁?#38171;堟垜浠?#37711;?#37721;稿仛鐨勫?#20788;鍒嗙郴缁?#38171;?#38171;屽?#25698;锛?#37812;戣?#20345;噦杩欎?#22557;?#27693;鏋跺?#25554;锛宻truts,webwork,hibernate,ibatis,spring?#29905;?#29905;锛岀敤杩?#27996;涙鏋?#26473;樿鏈?#23536;堝?#27697;?#20346;鐨勯厤缃?#38171;屼簬鏄?#28751;辫嚜宸辨潵鍋氬?#22557;?#27699;嚜鍔?#37922;熸垚鐨勫伐浣?#37510;?#37916;板湪锛?#37721;?#29781;佹噦涓涓狤OS灏?#37721;互浜?#38171;屾?#26664;?#26664;?#22795;媺灏?#37721;互瀹屾垚锛岄偅鎴戣杩?#27996;涙鏋跺共鍚?#38171;?#28051;嶅氨鏄?#28729;屾垚杩?#28051;郴缁熷銆?
     铏界劧?#22428;鎰?#29785;塃OS瀹屽叏鏄?#38344;?#37722;戣繃绋?#37928;?#38171;屼絾?#22428;浠仛鐨?#28051;鑸?#26916;?#37929;兘涓嶅?#23942;潅锛?#28051;鑸?#37928;?#26916;?#37929;?#28729;屽叏鍙互?#25956;瀹?#37833;?#23534;鍙?#37510;?#28003;?#37808;?#29785;変細鐮?#27996;?#23536;堝?#27691;汉鐨勯纰?#38171;屽洜涓?#37829;?#38315;?#37928;勫紑鍙戜汉鍛?#38171;屽叕鍙?#38341;?#28186;挎涓汉灏?#37721;互?#21804;鏇?#28003;?#37510;?/div>

]]>
ͼͼֽӡˢ
<optgroup id="iaykq"><small id="iaykq"></small></optgroup>
<menu id="iaykq"></menu>
<bdo id="iaykq"><nav id="iaykq"></nav></bdo>
  • <optgroup id="iaykq"><small id="iaykq"></small></optgroup>
    <menu id="iaykq"></menu>
    <bdo id="iaykq"><nav id="iaykq"></nav></bdo>