??xml version="1.0" encoding="utf-8" standalone="yes"?>中文国产成人精品久久一,国产精品99久久久久久久久 ,欧美精品免费播放http://www.aygfsteel.com/alter/满 Ȁ?醇厚zh-cnSat, 21 Jun 2025 17:21:51 GMTSat, 21 Jun 2025 17:21:51 GMT60E序员修水管http://www.aygfsteel.com/alter/archive/2012/10/29/390399.htmla_altera_alterMon, 29 Oct 2012 06:04:00 GMThttp://www.aygfsteel.com/alter/archive/2012/10/29/390399.htmlhttp://www.aygfsteel.com/alter/comments/390399.htmlhttp://www.aygfsteel.com/alter/archive/2012/10/29/390399.html#Feedback0http://www.aygfsteel.com/alter/comments/commentRss/390399.htmlhttp://www.aygfsteel.com/alter/services/trackbacks/390399.html一E序员家的水坏了,他打?sh)话叫来一个水工修理?nbsp;水管工鼓捣了一个小Ӟl于把管子修好了Q他递给E序员一?00元的帐单?nbsp;“600元!”E序员愤怒地_“我当E序员一天都赚不了这么多钱!” “是啊?#8221;水管工^静地_“我当E序员的时候也是?#8221;

a_alter 2012-10-29 14:04 发表评论
]]>
Oracle LEFT JOIN 多层U问? http://www.aygfsteel.com/alter/archive/2012/10/09/389226.htmla_altera_alterTue, 09 Oct 2012 02:15:00 GMThttp://www.aygfsteel.com/alter/archive/2012/10/09/389226.htmlhttp://www.aygfsteel.com/alter/comments/389226.htmlhttp://www.aygfsteel.com/alter/archive/2012/10/09/389226.html#Feedback0http://www.aygfsteel.com/alter/comments/commentRss/389226.htmlhttp://www.aygfsteel.com/alter/services/trackbacks/389226.html? A 
(1--->n) 表B (B 可能为空)
(n---->n)表C
(n---->n)表D

现在有如下问? 在查询的时候我们允许b为空的A数据
Select * from A,B where A.B_AID = B.AID(+)

扩展查询  如果q行B兌CU别的条件过?br />
Select * from A,B, C where A.B_AID = B.AID(+) and B.C_AID = C.AID;  

q个时候C能够知道B是可以ؓI的Q?q个时候的join效果是, 如果在A兌B  B存在的情况下 在?C的join 条gq行{选?q个时候B为空的A条gq是可以摆查出来的?只不q数据列B为空而已

再进行扩展筛? q行C兌DU别的条{?/span>
Select * from A,B,C,D where A.B_AID = B.AID(+) and B.C_AID = C.AID and C.D_AID = D.AID;  

q样的DU别的筛选就会破坏BU别的赛选?/div>q个时候测试效果就?D U别的join条g 会破?B的left join 效果?br />
你可能想到改写条件如?br />Select * from A,B,C,D where A.B_AID = B.AID(+) and B.C_AID = C.AID and C.D_AID(+) = D.AID;  

可惜我测试结果和full join 的效果是一LQ不是oracle高手Q?谁知道的留个a火链? 谢谢

=======================================================================
后来扑֐学帮? 得知他以前也遇到q情?br />改写为如下条?br />
select * from (Select ....,C.D_AID from A,B,C where A.B_AID = B.AID(+) and B.C_AID = C.AID ) E,D where E.D_AID(+) = D.AID
q样׃会破坏B(+) 效果? 

个h理解是 select 的组l数据效果。具体不清楚 Ƣ迎发言?/div>
=======================================================================
补充Q?br />今天我才知道  left join ?inner join 栏位是否必填q有关系?br />
在这个问题上有个地方被欺骗了 

是?A Left join B  inner JOIN C 的时?  如果 B ?C 字段是必填的? 那么q当于  left join?如果不是必填的话 你必L动的指示 left join (+)  ?br />=====================================================================
补充 2012/10/19   发现以上的理解不全面

A--B(+) 意思指B 端可为空Q?如果 对B -- C 下面的元素进行赛选, 在局部看 B ?C 的关pL两段都必d在的Q?但是在A -- B(+) 的前提下 C可以为空?  所以需要?B --- C(+) 来进行关?nbsp; q样的坏处是可能会加载出 B  (存在)-- C (不存? q样的错误数据?当然如果pȝ中有对这U数据有实保障的时候可以忽略该问题

如果没有切的保障的?
可能需要?A --- D(+) 其中D ?nbsp; select * from B,C where B = C q样的过滤方式, 但是q样增加了复杂度, 你需要将可能用到的查询条件和查询l果集在D?select 一一列出?

?Select A.*,R1,R2,R3 from A ,(select B.A_Aid,c1,c2,c3,R1,R2,R3 from B,C where B.C_AID= C.Aid) D where A.Aid = B.A_Aid and c1 = ? and c2 = ? ....

Sql 复杂度高了一炏V?br />






a_alter 2012-10-09 10:15 发表评论
]]>Oracle sql 写法http://www.aygfsteel.com/alter/archive/2012/09/12/387536.htmla_altera_alterWed, 12 Sep 2012 04:57:00 GMThttp://www.aygfsteel.com/alter/archive/2012/09/12/387536.htmlhttp://www.aygfsteel.com/alter/comments/387536.htmlhttp://www.aygfsteel.com/alter/archive/2012/09/12/387536.html#Feedback0http://www.aygfsteel.com/alter/comments/commentRss/387536.htmlhttp://www.aygfsteel.com/alter/services/trackbacks/387536.html
本文用途:因ؓ暂时没有旉d体看oracle sql的官Ҏ(gu)?Q纪录oracle的一些特D写法?(不断更新)
1. with ...  as ...
with querya as (select * from TB_Test)
2  case .. (when .. then) .... (when ..  then) .. else ... end
    SELECT FO_FULFILL_TRX_STRING.SEQUENCE_NO, AC_TYPE_ORDER.CODE, CASE
    WHEN AC_TYPE_ORDER.CODE = 'SO'
    THEN ( SELECT ORDER_NUMBER FROM SO_ORDER WHERE SO_ORDER.AID = FO_FULFILL_TRX_STRING.AID_ORDER_SO )
    ELSE ( SELECT ORDER_NUMBER FROM PO_ORDER WHERE PO_ORDER.AID = FO_FULFILL_TRX_STRING.AID_ORDER_PO )
    END ORDER_NUMBER
    FROM FO_FULFILL_TRX_STRING, AC_TYPE_ORDER.CODE
------------------------------------------------------------------------------------------------------------------------------
MYSQL 正则支持
select * from tb_rule_list where expression regexp '^.*\\$\\{0}\\[3].*$';
Oracle  正则函数支持
ORACLE中的支持正则表达式的函数主要?/div>
    REGEXP_LIKE Q与LIKE的功能相?/div>
    REGEXP_INSTR Q与INSTR的功能相?/div>
    REGEXP_SUBSTR Q与SUBSTR的功能相?/div>
    REGEXP_REPLACE Q与REPLACE的功能相
 
------------------------------------------------------------------------------------------------------------------------------
在MYSQL ?select 可以昄 不是group by 中的分组字段Q?可以是Q意的数据列,具体数据昄的是分组后的W一行数?/div>
在ORACLE?select 是严格的 只能昄group by 中的字段?/div>
同样效果的两行sql --- 让自己注意提高自q使用灉|?/div>
1. select a.aid AAid,nvl(b.cot,0) countline from po_draft_order a,(select AID_DRAFT_ORDER_PO BAID,count(*) cot from  po_draft_line group by AID_DRAFT_ORDER_PO) b WHERE A.AID = B.BAID(+);
2. select a.aid, (select count(*) from po_draft_line where AID_DRAFT_ORDER_PO = a.aid ) c from po_draft_order a;
-------------------------------------------------------------------------------------------------------------------------------
oracle 分
rank()/dense_rank()  over(partition by ... order by ...)  加强对分l排序之后的数据的控制力?/div>
over:  over(...)
partition by :  相当于group by
order by e.sal desc:  按工资从高到低排序(使用rank()/dense_rank() Ӟ必须要带order by否则非法Q?/div>
rank()/dense_rank():  分
整个语句的意思就是:在按部门划分的基上,按工资从高到低对雇员q行分Q?#8220;U别”׃到大的数字表示Q最g定ؓ1Q?nbsp;
那么rank()和dense_rank()有什么区别呢Q?/div>
rank():  跌排序Q如果有两个W一U时Q接下来是W三U?/div>
dense_rank():  q箋排序Q如果有两个W一U时Q接下来仍然是第二?/div>
min()/max() over(partition by ...)  // 分组最大最?/div>
lead()/lag() over(partition by order by) // 前后数据比较使用
lead(列名,n,m):  当前记录后面Wn行记录的<列名>的|没有则默认gؓmQ如果不带参数n,mQ则查找当前记录后面W一行的记录<列名>的|没有则默认gؓnull?/div>
lag(列名,n,m):  当前记录前面Wn行记录的<列名>的|没有则默认gؓmQ如果不带参数n,mQ则查找当前记录前面W一行的记录<列名>的|没有则默认gؓnull?/div>
主要是各个函数和over的配合用?/div>
-----------------------------------------------------------------------------------------------------------------------------------------------------
Oracle 的集合运?/div>
UNION 用来合ƈl果?要求q回字段是一L?/div>
JOIN 用来合ƈ字段?/div>
q
UNION ALL, FULL JOIN -- 重复出现
UNION, INNER JOIN minus -- 一ơ出?/div>
交集
intersect
差集
minus 
W卡积
CROSS JOIN
------------------------------------------------------------------------------------------------------------------------------
INNER JOIN oracle Ҏ(gu)的写?不知道在sqlserver 是否支持?br />
SELECT
*
FROM (
  SO_WEC_SODL_DESPATCH_HEADER AS SO_WEC_SODL_DESPATCH_HEADER_1
    INNER JOIN (
      (
        SO_WARRANTY_ENTITLEMENT WET_1
        INNER JOIN (SO_WARRANTY_ENTITLEMENT INNER JOIN SO_WEC_SODL
        ON SO_WARRANTY_ENTITLEMENT.AID = SO_WEC_SODL.AID_WARRANTY_ENTITLEMENT_SO
        ) ON (WET_1.AID_COMPANY = SO_WARRANTY_ENTITLEMENT.AID_COMPANY)
        AND (WET_1.SEQ_ITEM_NUM = SO_WARRANTY_ENTITLEMENT.PARENT_SEQ_ITEM)
        AND (WET_1.ITEM_LINE_NUM = SO_WARRANTY_ENTITLEMENT.PARENT_ITEM_NUM)
        AND (WET_1.SO_LINE_NUM = SO_WARRANTY_ENTITLEMENT.PARENT_SOLINE_NUM)
        AND (WET_1.SO_NUM = SO_WARRANTY_ENTITLEMENT.SO_NUM)
      )
      INNER JOIN SO_WEC_SODL AS SO_WEC_SODL_1 ON (SO_WEC_SODL.LINE_DELIVERY_NUMBER = SO_WEC_SODL_1.LINE_DELIVERY_NUMBER)
      AND (WET_1.AID = SO_WEC_SODL_1.AID_WARRANTY_ENTITLEMENT)
    ) ON SO_WEC_SODL_DESPATCH_HEADER_1.AID_WEC_SODL = SO_WEC_SODL_1.AID
) INNER JOIN SO_WEC_SODL_DESPATCH_HEADER ON SO_WEC_SODL.AID = SO_WEC_SODL_DESPATCH_HEADER.AID_WEC_SODL

===




a_alter 2012-09-12 12:57 发表评论
]]>Richfaces4.2 单介l?/title><link>http://www.aygfsteel.com/alter/archive/2012/09/10/387407.html</link><dc:creator>a_alter</dc:creator><author>a_alter</author><pubDate>Mon, 10 Sep 2012 09:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/alter/archive/2012/09/10/387407.html</guid><wfw:comment>http://www.aygfsteel.com/alter/comments/387407.html</wfw:comment><comments>http://www.aygfsteel.com/alter/archive/2012/09/10/387407.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alter/comments/commentRss/387407.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alter/services/trackbacks/387407.html</trackback:ping><description><![CDATA[今天看Richface4.2文档的时?发现变动很大 U录?br /><br /><div><div><div><div><h2><a id="sect-Component_Reference-RichFaces_overview-Full_technical_requirements">3.1. Full technical requirements</a></h2></div></div></div><p><a id="sect-Component_Reference-RichFaces_overview-Full_technical_requirements"> RichFaces has been developed with an open architecture to be compatible with a wide variety of environments. </a></p><div><div><div><div><h3><a id="sect-Component_Reference-RichFaces_overview-Server_requirements">3.1.1. Server requirements</a></h3></div></div></div><p><a id="sect-Component_Reference-RichFaces_overview-Server_requirements"> RichFaces 4 requires either of the following server technologies: </a></p><div><ul><li><p><a id="sect-Component_Reference-RichFaces_overview-Server_requirements"> An application server compliant with Java Platform, Enterprise Edition 6 (<acronym>JEE6</acronym> or <acronym>JEE6</acronym>), such as JBoss Application Server 7. </a></p></li><li><p><a id="sect-Component_Reference-RichFaces_overview-Server_requirements"> A major servlet container, such as Jetty 8 or Apache Tomcat 7.<span style="color: red;"> (看到q个只能对自qTOMCAT 6 望望Q?7 q支?Servlet3.0 规范Q不知道现在支持servlet3.0 的框架有哪些  q没注意 一直用2.5)</span><br /></a></p></li></ul></div></div><div><div><div><div><h3><a id="sect-Component_Reference-RichFaces_overview-Client_requirements">3.1.2. Client requirements</a></h3></div></div></div><p><a id="sect-Component_Reference-RichFaces_overview-Client_requirements"> Clients accessing RichFaces applications require a web browser. RichFaces supports the following web browsers: </a></p><div><a id="item-Developer_Guide-Technical_Requirements-Linux_environments"><p><strong>Linux environments</strong></p><ul><li><p> Firefox 3.6 or Firefox 7.0 and higher </p></li><li><p> Google Chrome 14 and higher </p></li></ul></a></div><div><a id="item-Developer_Guide-Technical_Requirements-Mac_OS_environments"><p><strong>Mac OS environments</strong></p><ul><li><p> Safari 5.1 and higher </p></li></ul></a></div><div><a id="item-Developer_Guide-Technical_Requirements-Microsoft_Windows_environments"><p><strong>Microsoft Windows environments</strong></p><ul><li><p> Firefox 3.6 or Firefox 7.0 and higher </p></li><li><p> Google Chrome 14 and higher </p></li><li><p> Internet Explorer 8.0 and higher     <span style="color: red;">q个中国的用L是要注意?/span><span style="color: red;">  如果需要支持IE6+  只能使用richface3.3.</span><br /></p></li></ul></a></div><p><a id="item-Developer_Guide-Technical_Requirements-Microsoft_Windows_environments"> Other browsers and versions are partially supported. </a></p></div><div><div><div><h3><a id="sect-Component_Reference-RichFaces_overview-Development_requirements">3.1.3. Development requirements</a></h3></div></div></div><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> Developing applications with the RichFaces framework requires the Java Development Kit (<acronym>JDK</acronym>), an implementation of JavaServer Faces (<acronym>JSF</acronym>), and a development environment. </a></p><dl><dt><a id="sect-Component_Reference-RichFaces_overview-Development_requirements">Java Development Kit (<acronym>JDK</acronym>)</a></dt><dd><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> RichFaces supports the following JDK versions: </a></p><div><ul><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> JDK 1.6 and higher  <span style="color: red;"> JDK1.5 的用户只能望望了</span><br /></a></p></li></ul></div><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> </a></p></dd><dt><a id="sect-Component_Reference-RichFaces_overview-Development_requirements">JavaServer Faces (<acronym>JSF</acronym>)</a></dt><dd><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> RichFaces supports the following JSF implementations and frameworks: </a></p><div><ul><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> MyFaces 2.x  <br /></a></p></li><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> Seam 3.x  <span style="color: red;">2.* 的seam q是byebye</span><br /></a></p></li><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> Mojara 2.x </a></p></li></ul></div><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> </a></p></dd><dt><a id="sect-Component_Reference-RichFaces_overview-Development_requirements">Development environment</a></dt><dd><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> RichFaces can be developed using most Java development environments. The following are recommended, and used for examples in this guide: </a></p><div><ul><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> JBoss Tools 3.3 and higher<span style="color: red;">  (q个肯跌Q连带Eclipse的版本都要更斎ͼ需?.7 如果没记错的话, q有webtool)</span><br /></a></p></li><li><p><a id="sect-Component_Reference-RichFaces_overview-Development_requirements"> Maven 3.0.3 and higher <br /></a></p></li></ul></div></dd></dl></div><br /><br /><br /><br /><br /><br /><img src ="http://www.aygfsteel.com/alter/aggbug/387407.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alter/" target="_blank">a_alter</a> 2012-09-10 17:20 <a href="http://www.aygfsteel.com/alter/archive/2012/09/10/387407.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse 文g xmln的支持?/title><link>http://www.aygfsteel.com/alter/archive/2012/09/07/387247.html</link><dc:creator>a_alter</dc:creator><author>a_alter</author><pubDate>Fri, 07 Sep 2012 06:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/alter/archive/2012/09/07/387247.html</guid><wfw:comment>http://www.aygfsteel.com/alter/comments/387247.html</wfw:comment><comments>http://www.aygfsteel.com/alter/archive/2012/09/07/387247.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alter/comments/commentRss/387247.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alter/services/trackbacks/387247.html</trackback:ping><description><![CDATA[  在Eclipse ~辑器中加入xmln 提示功能支持 <br /><br />  是针寚w目设定的Q?叛_目选择 Properties --?Project Facets N你需要用的 schema定义?img src ="http://www.aygfsteel.com/alter/aggbug/387247.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alter/" target="_blank">a_alter</a> 2012-09-07 14:30 <a href="http://www.aygfsteel.com/alter/archive/2012/09/07/387247.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>seam 单介l?http://www.aygfsteel.com/alter/archive/2012/08/30/386563.htmla_altera_alterThu, 30 Aug 2012 01:38:00 GMThttp://www.aygfsteel.com/alter/archive/2012/08/30/386563.htmlhttp://www.aygfsteel.com/alter/comments/386563.htmlhttp://www.aygfsteel.com/alter/archive/2012/08/30/386563.html#Feedback0http://www.aygfsteel.com/alter/comments/commentRss/386563.htmlhttp://www.aygfsteel.com/alter/services/trackbacks/386563.html前序

用了seam也快一q了Q?可惜一直是在做开发, 今天军_回头ȝ下, q且ȝ一下JSF Q?SEAM 的配|?

seam 单介l?br />
直接看英文吧, 译的不?br />

Seam is a powerful open source development platform for building rich Internet applications in Java. Seam integrates technologies such as Asynchronous JavaScript and XML (AJAX), JavaServer Faces (JSF), Java Persistence (JPA), Enterprise Java Beans (EJB 3.0) and Business Process Management (BPM) into a unified full-stack solution, complete with sophisticated tooling.

Seam has been designed from the ground up to eliminate complexity at both architecture and API levels. It enables developers to assemble complex web applications using simple annotated Java classes, a rich set of UI components, and very little XML. Seam's unique support for conversations and declarative state management can introduce a more sophisticated user experience while at the same time eliminating common bugs found in traditional web applications.


我们可以看到seam ?jsf,jpa,ejb l合比较紧密Q提供了annotation 方式支持Q?提供了大量的 ui components 支持?br />

惌的一Ҏ(gu)Q?seam不是一个框Ӟ 而是一个^台?br />


附:
JSF 资料查询  http://caterpillar.onlyfun.net/Gossip/JSF/IntroduceJSF.htm

http://docs.oracle.com/javaee/5/tutorial/doc/bnaph.html

==== seam 提供了一个定制的eclipse版本用于seam开发,省了很多?br />



a_alter 2012-08-30 09:38 发表评论
]]>
վ֩ģ壺 | | ¡| ˮ| | | ۶| | ͡| | | Ǧɽ| | | | ߴ| | ƽ| | | ƽԭ| | ˮ| Ӧñر| ¡| Զ| | | | | | ɽ| ³| | | Ϫ| | | ض| | |