You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by tm...@apache.org on 2008/01/05 09:25:38 UTC

svn commit: r609101 [19/26] - in /db/derby/docs/trunk: ./ src/ja_JP/ src/ja_JP/ref/

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16357.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16357.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16357.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16357.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj16357" xml:lang="ja">
+<title>参照定義</title>
+<refbody>
+<example> <codeblock><b>REFERENCES <i><xref href="rreftablename.dita#rreftablename">表名</xref></i> [ ( <i><xref
+href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> [ , <i><xref
+href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> ]* ) ]
+[ ON DELETE {NO ACTION | RESTRICT | CASCADE | SET NULL}]
+   [ ON UPDATE {NO ACTION | RESTRICT }]
+|
+[ ON UPDATE {NO ACTION | RESTRICT }] [ ON DELETE
+   {NO ACTION | RESTRICT | CASCADE | SET NULL}] </b></codeblock></example>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16357.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16762.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16762.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16762.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16762.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj16762" xml:lang="en-us">
+<title>LENGTH関数</title>
+<prolog><metadata>
+<keywords><indexterm>LENGTH function</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>LENGTHは文字列式あるいはビット列式に適用して、文字の長さを結果として返します。</p> 
+<p>あらゆる組込みのデータ型は暗黙のうちに文字列に変換できるので、この関数はあらゆるデータ型に適用することができます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>LENGTH ( { <i>文字列式</i> | <i>ビット列式</i> } )</b></codeblock> </refsyn>
+<example> <codeblock><b><ph>-- 20を返す。</ph>
+VALUES LENGTH('supercalifragilistic')
+<ph>-- 1を返す。</ph>
+VALUES LENGTH(X'FF')
+-- 4を返す
+VALUES LENGTH(1234567890)</b></codeblock> </example>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16762.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18730.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18730.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18730.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18730.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj18730" xml:lang="ja">
+<title>DATEデータ型</title>
+<prolog><metadata>
+<keywords><indexterm>DATE data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>DATEにより、<i>java.sql.Date</i>の範囲で年月日を記録できます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>DATE</b></codeblock> </refsyn>
+<section><title>対応する実行時のJavaの型</title> <p><i>java.sql.Date</i></p> </section>
+<section><title>JDBCメタデータ型(java.sql.Types)</title><p>DATE</p>
+<p>一つの式に日付、時刻、タイムスタンプを混在させてはなりません。</p>
+<p><i>java.sql.Date</i>のメソッドにより扱うことのできる全ての値が、対応するSQLの日付や時刻のデータ型の列にて許されています。<ph conref="../conrefs.dita#prod/productshortname"></ph>はDATEの値に対して次の書式を用意しています。<codeblock>yyyy-mm-dd
+mm/dd/yyyy
+dd.mm.yyyy</codeblock>上に示した三つの書式のうち、最初のものは<i>java.sql.Date</i>の書式です。</p>
+<p>年は常に4桁の数字で表されなければなりません。それに対して月や日は一桁あるいは二桁の数字で表すことができます。</p>
+<p>さらに、<ph conref="../conrefs.dita#prod/productshortname"></ph>はDB2サーバのロケールに特有な日時の書式を受け付けます。もしとるべき書式があいまいである場合は、上で示した組込みの書式が優先されます。</p> </section>
+<example> <title>例</title><codeblock><b>VALUES DATE('1994-02-23')
+
+VALUES '1993-09-01'</b></codeblock> </example>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18730.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18922.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18922.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18922.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18922.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj18922" xml:lang="ja">
+<title>LEFT OUTER JOIN演算</title>
+<prolog><metadata>
+<keywords><indexterm>LEFT OUTER JOIN operation</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> 
+<p>LEFT OUTER JOIN演算は、join節を記述できる<xref href="rrefsqlj29840.dita#rrefsqlj29840">JOIN演算</xref>の一つです。
+この演算では最初の(左の)表にて、一致する行が二つ目の(右の)表にない行は、二つ目の表のNULLの行に結合されたものとして、結果に残ります。</p></section>
+<refsyn><title>構文</title>
+<codeblock>
+<b><i><xref href="rreftableexpression.dita#rreftableexpression">表式</xref></i> LEFT [ OUTER ] JOIN <i
+><xref href="rreftableexpression.dita#rreftableexpression">表式</xref></i>
+{
+    ON <i>真偽式</i> 
+    }</b></codeblock>
+<p>ON節にあるいずれの真偽式も、直接の表と直接の問い合わせ文にあるいかなる表を参照することができます。
+ON節は結合されていない表を参照することもできますし、結合されている表を参照しなくともかまいません。(ただし一般的には参照します。)</p> </refsyn>
+<example><title>例 1</title><codeblock><b>--都市に対応するアジアの国</b>
+
+SELECT CITIES.COUNTRY, CITIES.CITY_NAME, REGION 
+FROM Countries 
+LEFT OUTER JOIN Cities
+ON CITIES.COUNTRY_ISO_CODE = COUNTRIES.COUNTRY_ISO_CODE
+WHERE REGION = 'Asia'
+
+<b>-- LEFT JOINという別の書き方により、前例と同じ結果を
+-- 実現する。
+</b>
+SELECT  COUNTRIES.COUNTRY, CITIES.CITY_NAME,REGION 
+FROM COUNTRIES 
+LEFT JOIN CITIES 
+ON CITIES.COUNTRY_ISO_CODE = COUNTRIES.COUNTRY_ISO_CODE
+WHERE REGION = 'Asia'
+</codeblock></example>
+<example><title>例 2</title><codeblock><b>
+-- EMPLOYEEとDEPAETMENTという表を結合して、
+-- 1930より前に生まれた(BIRTHDATE)全ての社員の、
+-- 社員番号(EMPNO)と、
+-- 社員の苗字(LASTNAME)と、
+-- 部署番号(EMPLOYEEという表のWORKDEPTと、DEPARTMENTという表のDEPTNO)と、
+-- 部署名(DEPTNAME)を選択する。
+</b>
+SELECT EMPNO, LASTNAME, WORKDEPT, DEPTNAME 
+   FROM SAMP.EMPLOYEE LEFT OUTER JOIN SAMP.DEPARTMENT 
+   ON WORKDEPT = DEPTNO 
+   AND YEAR(BIRTHDATE) &lt; 1930
+
+<b>-- 管理者のいない部署を含め全ての部署を、
+-- 部署の管理者の社員番号と苗字と共に一覧する。
+</b>
+SELECT DEPTNO, DEPTNAME, EMPNO, LASTNAME
+      FROM DEPARTMENT LEFT OUTER JOIN EMPLOYEE
+	    ON MGRNO = EMPNO</codeblock> </example>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj18922.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj19433.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj19433.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj19433.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj19433.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj19433" xml:lang="ja">
+<title>SQL式</title>
+<shortdesc>多くの文や式の構文の語句に、<i>式</i>や<i>表副問合せ</i>のような式の一種があります。
+式は文の定められた場所に置くことができます。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>SQL expressions<indexterm>column reference</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>constant</indexterm></indexterm><indexterm>SQL
+expressions<indexterm>NULL</indexterm></indexterm><indexterm>SQL expressions<indexterm>dynamic
+parameter</indexterm></indexterm><indexterm>SQL expressions<indexterm>CAST</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>scalar subquery</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>table subquery</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>conditional</indexterm></indexterm><indexterm>SQL
+expressions<indexterm>numeric</indexterm></indexterm><indexterm>SQL expressions<indexterm>character</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>string with wildcards</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>concatenation function</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>CURRENT_DATE function</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>CURRENT_TIME function</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>CURRENT_TIMESTAMP function</indexterm></indexterm>
+<indexterm>SQL expressions<indexterm>mathematical (+ -, *, /, unary + and
+- )</indexterm></indexterm><indexterm>SQL expressions<indexterm>LENGTH function</indexterm></indexterm>
+<indexterm>expressions<indexterm>column reference</indexterm></indexterm>
+<indexterm>expressions<indexterm>constant</indexterm></indexterm><indexterm>expressions<indexterm>NULL</indexterm></indexterm>
+<indexterm>expressions<indexterm>dynamic parameter</indexterm></indexterm>
+<indexterm>expressions<indexterm>CAST</indexterm></indexterm><indexterm>expressions<indexterm>scalar
+subquery</indexterm></indexterm><indexterm>expressions<indexterm>table subquery</indexterm></indexterm>
+<indexterm>expressions<indexterm>conditional</indexterm></indexterm><indexterm>expressions<indexterm>numeric</indexterm></indexterm>
+<indexterm>expressions<indexterm>character</indexterm></indexterm><indexterm>expressions<indexterm>string
+with wildcards</indexterm></indexterm><indexterm>expressions<indexterm>concatenation
+function</indexterm></indexterm><indexterm>expressions<indexterm>CURRENT_DATE
+function</indexterm></indexterm><indexterm>expressions<indexterm>CURRENT_TIME
+function</indexterm></indexterm><indexterm>expressions<indexterm>CURRENT_TIMESTAMP
+function</indexterm></indexterm><indexterm>expressions<indexterm>mathematical
+(+ -, *, /, unary + and - )</indexterm></indexterm><indexterm>expressions<indexterm>LENGTH
+function</indexterm></indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section><p>場所によっては決められた種類の式や決められた属性を持つ式のみ置くことができます。</p></section>
+<section><p>特別な指定がなければ、構文にて<i>式</i>と書かれている全ての場所に式を置くことができます。
+これには以下が含まれます。<ul>
+<li><xref href="rrefsqlj13658.dita#rrefsqlj13658">ORDER BY 節</xref></li>
+<li><i><xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i></li>
+<li><xref href="rrefsqlj26498.dita#rrefsqlj26498">UPDATE文</xref> (SETの部分)</li>
+<li><xref href="rrefsqlj11277.dita#rrefsqlj11277">VALUES式</xref></li>
+<li><xref href="rrefsqlj33602.dita#rrefsqlj33602">WHERE節</xref></li>
+</ul></p></section>
+<section><p>もちろん他にも、これらの要素を構成の一部とする文はあるので、その一部として式を置くことができます。</p>
+<p>以下の表ではSQL式と式を置くことのできる場所を示します。</p></section>
+<section><title>一般的な式</title>
+<p>
+一般的な式とは何らかの型の値となる式のことです。<table frame="all"
+id="sqlj18370" pgwide="0"><title>一般的な式の表</title>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="2" colnum="1" colwidth="30*"/>
+<colspec colname="3" colnum="2" colwidth="60*"/><colspec colname="3" colnum="3"
+colwidth="52*"/>
+<thead>
+<row>
+<entry align="left" colname="2" valign="bottom">式の種類</entry>
+<entry align="left" colname="3" valign="bottom">説明</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="2"> 列参照式</entry>
+<entry colname="3">列への参照がある式では、<xref href="rrefcolumnname.dita#rrefcolumnname"><varname>列名</varname></xref>で列の値を参照して、式の中で値を扱うことができます。
+<p>列が曖昧な場合は、<varname>列名</varname>を表名あるいは相関名で限定する必要があります。</p>  
+<p><xref href="rrefsqlj21583.dita#rrefsqlj21583">FROM
+節</xref>にて表に相関名が与えられていた場合、<varname>列名</varname>は相関名で限定される必要があります。別名として相関名が与えられている場合、表名で列を限定することはできません。</p>
+<p>これは<i><xref
+href="rrefselectexpression.dita#rrefselectexpression">選択式</xref>s</i>、UPDATE文やDML文のWHERE節におくことができます。</p></entry>
+
+</row>
+<row>
+<entry colname="2">定数</entry>
+<entry colname="3">多くの組込みのデータ型には関連した定数があります。(これは<xref href="crefsqlj31068.dita#crefsqlj31068"></xref>に記述されます。)</entry>
+</row>
+<row>
+<entry colname="2">NULL</entry>
+<entry colname="3">NULLは不明な値を表す、型のない定数です。<p>CAST式やINSERTのVALUES一覧およびUPDATEのSET節におくことができます。CAST式で利用することで、指定したデータ型を与えることができます。</p></entry>
+</row>
+<row>
+<entry colname="1"></entry>
+<entry colname="2">動的パラメータ</entry>
+<entry colname="3">
+動的パラメータは、SQL文が作成された時には未だ決まっていない値へのパラメータです。その値の変わりに疑問符(?)がそれぞれの動的なパラメータのプレースホルダとしておかれます。
+<xref href="crefsqlj29911.dita#crefsqlj29911"></xref>を参照してください。
+<p>動的パラメータは準備された文においてのみ、使うことができます。準備された文が実行される前に、動的パラメータの値は決められなければなりません。
+また決めた値は文脈に沿った型でなければなりません。</p>
+<p>データ型を問題なく推定できる場所では、どこでも利用することができます。<xref href="crefsqlj29911.dita#crefsqlj29911"></xref>を参照してください。</p>
+</entry>
+</row>
+<row>
+<entry colname="2">CAST 式</entry>
+<entry colname="3">NULLや動的パラメータの型を特定したり、値を他の型に変換することができます。
+<xref href="rrefsqlj33562.dita#rrefsqlj33562"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">スカラー副問合せ</entry>
+<entry colname="3">一列のみの一行だけを返す副問合せです。
+<i><xref href="rrefscalarsubquery.dita#rrefscalarsubquery"></xref>を参照してください。</i></entry>
+</row>
+<row>
+<entry colname="2">表副問合せ</entry>
+<entry colname="3">副問合せからは、一列以上、一行以上を返すことができます。
+<i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i>を参照してください。
+<p>FROM句やEXISTS、INや定量比較の表式として置くことができます。</p>
+</entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+
+<section><title>Boolean式</title>
+<p>ブーリアン式はブーリアン値になる式です。多くの式は、ブーリアン値となれます。
+一般的にWHERE句で用いられるブーリアン式は、SQL演算子で処理されるオペランドからなります。<xref href="rrefsqlj23075.dita#rrefsqlj23075/sqlj34517"></xref>を参照してください。</p></section>
+<section><title>数式</title>
+<p>数式は数値になる式です。多くの式は、数値となれます。
+数値は以下の型のいずれかです。<ul>
+<li>BIGINT</li>
+<li>DECIMAL</li>
+<li>DOUBLE PRECISION</li>
+<li>INTEGER</li>
+<li>REAL</li>
+<li>SMALLINT</li>
+</ul><table frame="all" pgwide="0"><title>数式の表</title>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="2" colnum="1" colwidth="40*"/>
+<colspec colname="3" colnum="2" colwidth="60*"/>
+<thead>
+
+<row>
+<entry colname="2">条件式</entry>
+<entry colname="3">条件式では、ブーリアン値に基づいて評価する式を選ぶことができます。</entry>
+</row>
+<row>
+<entry align="left" colname="2" valign="bottom">式の種類</entry>
+<entry align="left" colname="3" valign="bottom">説明</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="2">-、*、/、単一の+と-の式</entry>
+<entry colname="3">
+<p>評価されると、オペランドに対して期待される演算処理が行われます。もし両方のオペランドが同じ型であれば、結果の型が昇格されることはありません。従って整数に除算演算子が適用されると、実際の計算結果に切捨て処理が行われて整数となった値が結果となります。
+もし型が混在していた場合は、<xref href="crefsqlj31068.dita#crefsqlj31068"></xref>の記述に従い、型の昇格が行われます。</p>  
+<p>単一の+で行われる処理はありません。(例えば+4は4と同じです。)単一の-は、-1をかけることと同じで、その結果符号が反転します。</p></entry>
+</row>
+<row>
+<entry colname="2">AVG</entry>
+<entry colname="3">数値の集合から平均を返します。<xref href="rrefsqlj32693.dita#rrefsqlj32693"></xref></entry>
+</row>
+<row>
+<entry colname="2">SUM</entry>
+<entry colname="3">数値の集合から合計を返します。<xref href="rrefsqlj13083.dita#rrefsqlj13083"></xref></entry>
+</row>
+<row>
+<entry colname="2">LENGTH</entry>
+<entry colname="3">文字列やビット列から、文字数を返します。
+<xref href="rrefsqlj16762.dita#rrefsqlj16762"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">LOWER</entry>
+<entry colname="3"><xref href="rrefsqlj42049.dita#rrefsqlj42049"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">COUNT</entry>
+<entry colname="3">値集合の個数を返します。<xref href="rrefsqlj38716.dita#rrefsqlj38716"></xref>、<xref
+href="rrefsqlj66113.dita#rrefsqlj66113"></xref>を参照してください。</entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+<section><title>文字式</title><p>
+文字式は結果がCHARおよびVARCHARの値となる式です。多くの式の結果がCHARおよびVARCHARの値となります。<table frame="all" pgwide="0"><title>文字式の表</title>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="2" colnum="1" colwidth="40*"/>
+<colspec colname="3" colnum="2" colwidth="60*"/>
+<thead>
+<row>
+<entry align="left" colname="2" valign="bottom">式の種類</entry>
+<entry align="left" colname="3" valign="bottom">説明</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="2">ワイルドカードのあるCHARやVARCHARの値</entry>
+<entry colname="3">ワイルドカードの%や_を使って、LIKE演算子が一致する情報を探すパターン文字列を作ります。</entry>
+</row>
+<row>
+<entry colname="2">連結式</entry>
+<entry colname="3">連結式にて、連結演算子の"||"は、右辺のオペランドを左辺のオペランドの末尾に連結します。これは文字列やビット列に対して利用できます。
+<xref href="rrefsqlj40899.dita#rrefsqlj40899"></xref>を参照してください。
+</entry>
+</row>
+<row>
+<entry colname="2">組込みの文字列関数</entry>
+<entry colname="3">組込みの文字列関数は文字列に作用して、文字列を返します。
+<xref href="rrefsqlj97870.dita#rrefsqlj97870"></xref>、<xref href="rrefsqlj42049.dita#rrefsqlj42049"></xref>、<xref
+href="rrefsqlj32613.dita#rrefsqlj32613"></xref>、<xref href="rreftrimfunc.dita#rreftrimfunc"></xref>、<xref href="rrefsqlj93082.dita#rrefsqlj93082"></xref>それと<xref href="rrefsqlj29930.dita#rrefsqlj29930.dita"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">USER関数</entry>
+<entry colname="3">User関数は現在のユーザに関する情報を文字列で返します。<xref href="rrefsqlj42324.dita#rrefsqlj42324"></xref>、<xref href="rrefsqlj25228.dita#rrefsqlj25228"></xref>それと
+<xref href="rrefsqlj42476.dita#rrefsqlj42476"></xref>を参照してください。</entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+<section><title>日付/時刻式</title>
+<p>
+日付/時刻式は、結果がDATE、TIMEやTIMESTAMPの値となる式です。
+多くの式の結果が日付/時刻の値となります。
+<table frame="all" pgwide="0">
+<title>日付/時刻式の表</title>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="2" colnum="1" colwidth="30*"/>
+<colspec colname="3" colnum="2" colwidth="50*"/>
+<thead>
+<row>
+<entry align="left" colname="2" valign="bottom">式の種類</entry>
+<entry align="left" colname="3" valign="bottom">説明</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="2">CURRENT_DATE</entry>
+<entry colname="3">現在の日付を返します。<xref href="rrefsqlj34177.dita#rrefsqlj34177"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">CURRENT_TIME</entry>
+<entry colname="3">現在の時刻を返します。<xref href="rrefsqlj33772.dita#rrefsqlj33772"></xref>を参照してください。</entry>
+</row>
+<row>
+<entry colname="2">CURRENT_TIMESTAMP</entry>
+<entry colname="3">現在のタイムスタンプを返します。<xref href="rrefsqlj15866.dita#rrefsqlj15866"></xref>を参照してください。</entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj19433.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20204.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20204.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20204.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20204.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj20204" xml:lang="ja">
+<title>数値を異なる数値型の列に記録する</title>
+<refbody>
+<section><p>大きな記憶領域を占める浮動小数点型の値を、小さな記憶領域の場所に代入するとき、その値が小さな記憶領域の場所に記録できない値であればエラーとなります。
+次に例を示します。<codeblock><b>create table mytable (r REAL, d DOUBLE PRECISION);</b>
+0 rows inserted/updated/deleted
+<b>INSERT INTO mytable (r, d) values (3.4028236E38, 3.4028235E38);</b>
+ERROR X0X41: The number '3.4028236E38' is outside the range for
+the data type REAL.</codeblock></p></section>
+
+<section><p>浮動小数点型の値を、INTEGERの列に記録できます。小数点以下の部分は切り捨てられます。次に例を示します。<codeblock><b><ph>INSERT INTO mytable(integer_column) values (1.09e0);</ph>
+1 row inserted/updated/deleted
+<ph>SELECT integer_column
+FROM mytable;</ph>
+I
+---------------
+1</b></codeblock></p></section>
+<section><p>整数型には、その範囲内で小数のある数値を置くことができますが、精度は失われます。</p></section>
+<section><p>小数のある数値型には、その精度の範囲内にある整数を置くことができます。例を挙げます。<codeblock><b>ij&gt; <ph>insert into mytable (decimal_column)
+VALUES (55555555556666666666);</ph>
+ERROR X0Y21: The number '55555555556666666666' is outside the
+range of the target DECIMAL/NUMERIC(5,2) datatype.</b></codeblock></p></section>
+<section><p>大きな記憶領域を占める整数の値を、小さな記憶領域に代入するとき、その値が小さな記憶領域では記録できないとき、エラーとなります。以下に例を挙げます。<codeblock><b><ph>INSERT INTO mytable (int_column) values 2147483648;</ph>
+ERROR 22003: The resulting value is outside the range for the 
+data type INTEGER.</b></codeblock></p></section>
+<section> <note>NUMERICの値から小数以下を取り除く場合、<ph
+conref="../conrefs.dita#prod/productshortname"></ph>は切捨てを行います。</note></section>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20204.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20937.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20937.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20937.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20937.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj20937" xml:lang="ja">
+<title>CREATE INDEX 文</title>
+<prolog><metadata>
+<keywords><indexterm>CREATE INDEX statement</indexterm><indexterm>Descending
+indexes</indexterm><indexterm>Indexes<indexterm>created in descending order</indexterm></indexterm>
+<indexterm>Backing indexes<indexterm>created automatically to enforce primary
+key, unique, and foreign key constraints</indexterm></indexterm><indexterm>Indexes<indexterm>automatic
+creation of for primary key, unique, and foreign key constraints</indexterm></indexterm>
+<indexterm>Indexes<indexterm>specifying page size for</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section id="i1013640"> <p id="sqlj31027">CREATE INDEX文により表に索引を作成できます。
+索引は表のひとつ以上の列に作成できます。</p></section>
+<refsyn><title>構文</title><codeblock><b>CREATE [UNIQUE] INDEX <i><xref
+href="rrefindexname.dita#rrefindexname">索引名</xref></i>
+ON <i><xref href="rreftablename.dita#rreftablename">表名</xref></i> ( <i><xref
+href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> [ ASC | DESC ]
+    [ , <i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> [ ASC | DESC ]] * )</b></codeblock><p>The
+<ph conref="../conrefs.dita#prod/productshortname"></ph>にて索引に可能な列の最大数は16です。</p><p>索引名は128文字を超えてはなりません。</p><p>同じ列が単一のCREATE INDEX文に2つ以上あってはなりません。なお異なる索引であれば、同じ列をもってかまいません。</p><p><ph conref="../conrefs.dita#prod/productshortname"></ph>は索引を使って、情報の操作を行う文の効率を向上します。(<cite><ph
+conref="../conrefs.dita#pub/cittuning"></ph></cite>を参照してください。)。 さらにUNIQUEの索引により、情報が整合性を保っているか検証する事ができます。</p><p>索引名はスキーマにて一意です。(データベースシステムによっては、同じスキーマの異なるテーブルに同じ名前の索引を持つことができますが、<ph conref="../conrefs.dita#prod/productshortname"></ph>は違います。)
+索引と表の片方にスキーマ名が明示されて、もう片方に明示されなかった場合、索引と表は同じスキーマにあるものとされます。索引と表の両方にスキーマ名が明示されて、それぞれのスキーマ名が異なっていた場合、例外が発生します。表にも索引にもスキーマ名が明示されなかった場合、現在のスキーマが使われます。</p>
+<p>既定で<ph conref="../conrefs.dita#prod/productshortname"></ph>は索引をそれぞれの列に対して昇順で作成します。列名の後にASCと書いても既定の振る舞いと同じように動作します。
+列名の後にDESCと書くと、索引を作るときに<ph conref="../conrefs.dita#prod/productshortname"></ph>はその列を降順で扱います。
+降順を列に指定することで、昇順と降順が混ざった並び順あるいは降順の問い合わせや、索引のある列の最大値や最小値を選択する問い合わせが、効率よく実行されることを期待できます。</p>
+<p>限定された索引名を指定する場合、スキーマ名は<codeph>SYS</codeph>で始まってはなりません。</p> </refsyn>
+<section id="sqlj27363"><title>索引と制約</title><p>一意性・主キー・外部キー制約を作成すると、制約を適用または支援する索引が作成されます。(このような索引のことを支援索引と呼びます。)もし列や列の集合に、UNIQUEないしPRIMARY KEYの制約が存在している場合、それらの列に索引を作成することはできません。<ph conref="../conrefs.dita#prod/productshortname"></ph>は既にその索引をシステムが決めた名前で作成しています。制ç
 ´„を支援する索引にシステムが与えた名前は、索引の名前でシステム表に問い合わせれば、簡単に見つけることができるでしょう。
+既にUNIQUEの索引が存在している列の集合に、主キーまたは一意性制約を追加すると、同じ列の集合に複数の索引が造られることとなります。一つがもともとあったUNIQUEの制約でもう一つが、制約に併せて作成された支援索引です。</p>
+<p>FLIGHTS_PKという名前の制約を支援する索引を見つけるには次のようにします。</p><codeblock><b>SELECT CONGLOMERATENAME FROM SYS.SYSCONGLOMERATES,
+SYS.SYSCONSTRAINTS WHERE
+SYS.SYSCONGLOMERATES.TABLEID = SYSCONSTRAINTS.TABLEID 
+AND CONSTRAINTNAME = 'FLIGHTS_PK'</b></codeblock> </section>
+<example> <codeblock><b>CREATE INDEX OrigIndex ON Flights(orig_airport);
+<b>-- 金額は通常大きな値から小さな値の順で並べられるので、
+-- 索引を降順で作成します。</b>
+CREATE INDEX PAY_DESC ON SAMP.EMPLOYEE (SALARY);
+<ph>-- 索引をより大きいページサイズで作成します。</ph>
+call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.storage.pageSize','8192');
+CREATE INDEX IXSALE ON SAMP.SALES (SALES);
+call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.storage.pageSize',NULL);
+</b></codeblock> </example>
+<section><title>ページサイズとキーサイズ</title>
+<note>索引にあるキーの列サイズの合計は、ページサイズの半分以下で無ければなりません。もし既存行に作成しようとしている索引のキー列の合計が索引のページサイズの半分より大きな行があるならば、索引の作成は失敗します。このエラーは索引を作成したとき、表の既存行が基準に合わないときのみ発生します。索引が作成された後は、基準のキーサイズを超えã�
 �行の挿入が失敗します。</note> </section>
+<section><title>文の依存</title><p>SELECT、INSERT、UPDATE、UPDATE WHERE CURRENT、DELETEやDELETEの準備済み文は、その表がCREATE INDEX文の対象となった場合、索引の作成とともに無効になります。一方表について開いているカーソルは影響を受けません。</p> </section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj20937.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21571.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21571.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21571.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21571.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj21571" xml:lang="en-us">
+<title>問合せ</title>
+<prolog><metadata>
+<keywords><indexterm>UNION</indexterm><indexterm>UNION ALL</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>問合せにより、既存表や表に組込みの定数を基にして、仮想的な表が作られます。</p></section>
+<refsyn><title>Syntax</title><codeblock><b>{
+    ( <i>Query</i> ) |
+<i>    Query</i> INTERSECT [ ALL | DISTINCT ] <i>Query</i> |
+<i>    Query</i> EXCEPT [ ALL | DISTINCT ] <i>Query</i> |
+<i>    Query</i> UNION [ ALL | DISTINCT ] <i>Query</i> |
+<i>    <xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i> | <i><xref
+href="rrefsqlj11277.dita#rrefsqlj11277">VALUES式</xref></i>
+}</b></codeblock>
+<p>問合せの前後に任意で括弧を置くことができます。また、INTERSECT、EXCEPT、UNION演算子の評価順を括弧を使って変えることができます。INTERSECTを除きこれらの演算子は、括弧がなければ左から右に評価されます。INTERSECTはUNIONあるいはEXCEPTより前に評価されます。</p></refsyn>
+<section><title>UNION、INTERSECT、EXCEPT ALLにおける結果の重複</title>
+<p>ALLとDISTINCTというキーワードにより処理結果から重複を取り除くか否かが決まります。
+DISTINCTというキーワードがあれば、結果に重複行はありません。ALLというキーワードがあれば、入力によって結果に重複行がある場合があります。既定はDISTINCTなので、ALLかDISTINCTか指定しなければ重複は取り除かれます。例えばUNIONの場合は、両方の問合せの全行を元に一時的な<i>ResultSet</i>を生成したのち、重複行を取り除いてから結果を返します。これがUNION ALLならば、両方の問合せのå…�
 �行が返されます。</p>
+<p> 左表にある重複した行の数をL、右表にある左表と同じ内容で重複した行の数をRとすると、どの操作を行うかにより、結果表にある重複した行の数は次のようにきまります。(ALLが指定されたとします。)
+<ul>
+<li>UNION: ( L + R )。</li>
+<li>EXCEPT: ( L – R )と0(零)のうち大きいほう</li>
+<li>INTERSECT: LとRのうち小さいほう</li>
+</ul></p></section>
+<example><title>例</title><codeblock><b><ph>-- 選択式 </ph>
+SELECT *
+FROM ORG
+
+<ph>-- 副問合せ </ph>
+SELECT *
+FROM (SELECT CLASS_CODE FROM CL_SCHED) AS CS
+
+-- 副問合せ
+SELECT *
+FROM (SELECT CLASS_CODE FROM CL_SCHED) AS CS (CLASS_CODE)
+
+<ph>-- UNIONにより
+-- ORGという表にある全行の
+-- DEPTNUMBとMANAGERという列に加え、
+-- (1,2)と(3,4)を返す。
+-- なお、DEPTNUMBとMANAGERはsmallint型の列である。</ph>
+SELECT DEPTNUMB, MANAGER 
+FROM ORG
+UNION ALL
+VALUES (1,2), (3,4)
+
+<ph>-- 値の式</ph>
+VALUES (1,2,3)</b>
+<b>
+-- EMPLOYEEという表にて部署番号(WORKDEPT)が'E'で始まる社員および、
+-- EMP_ACTという表にてプロジェクト番号(PROJNO)が
+-- 'MA2100'、'MA2110'あるいは'MA2112'のプロジェクトにアサインされている社員の
+-- 社員番号(EMPNO)を一覧する。
+SELECT EMPNO
+     FROM EMPLOYEE
+     WHERE WORKDEPT LIKE 'E%'
+  UNION
+  SELECT EMPNO
+     FROM EMP_ACT
+     WHERE PROJNO IN('MA2100', 'MA2110', 'MA2112')</b>
+<b>-- 前の例と同じ内容の問合せを行い、EMPLOYEEという表から得た行には'emp'、
+-- EMP_ACTという表から得た行には'emp_act'という"タグ"をつける。
+-- どちらの表から来たかをあらわす"タグ"があるので、
+-- この問合せは前の問合せとは違い、同じEMPNOを一回より多く返すことがある。
+SELECT EMPNO, 'emp'
+     FROM EMPLOYEE
+     WHERE WORKDEPT LIKE 'E%'
+  UNION
+  SELECT EMPNO, 'emp_act' FROM EMP_ACT
+     WHERE PROJNO IN('MA2100', 'MA2110', 'MA2112')</b>
+<b>-- 前の例とほぼ同じ内容の問合せである。
+-- UNION ALLが指定されたので重複は取り除かれなくなる。
+SELECT EMPNO
+      FROM EMPLOYEE
+      WHERE WORKDEPT LIKE 'E%'
+  UNION ALL
+  SELECT EMPNO
+     FROM EMP_ACT
+     WHERE PROJNO IN('MA2100', 'MA2110', 'MA2112')</b>
+<b>-- 前の例とほぼ同じ内容の問合せである。
+-- いずれの表にもいない二人の社員を加えて、
+-- その行に"new"というタグをつけた。
+ SELECT EMPNO, 'emp'
+     FROM EMPLOYEE
+     WHERE WORKDEPT LIKE 'E%'
+  UNION
+  SELECT EMPNO, 'emp_act'
+     FROM EMP_ACT
+     WHERE PROJNO IN('MA2100', 'MA2110', 'MA2112')
+  UNION
+     VALUES ('NEWAAA', 'new'), ('NEWBBB', 'new')</b></codeblock> </example>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21571.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21583.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21583.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21583.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21583.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj21583" xml:lang="ja">
+<title>FROM 節</title>
+<prolog><metadata>
+<keywords><indexterm>FROM clause</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> 
+<p>FROM節は<i><xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i>に必要です。この節により、問い合わせ文にある他節の式にて、利用可能な列のある表を参照します。</p></section>
+
+<refsyn><title>構文</title> <codeblock><b>FROM 表式 [ , 表式 ] *</b></codeblock> </refsyn>
+<example> <codeblock><b>SELECT Cities.city_id
+FROM Cities
+WHERE city_id &lt; 5
+<ph>-- 他種の表式</ph>
+SELECT TABLENAME, ISINDEX 
+FROM SYS.SYSTABLES T, SYS.SYSCONGLOMERATES C
+WHERE T.TABLEID = C.TABLEID
+ORDER BY TABLENAME, ISINDEX
+<ph>-- 結合順を指定する</ph>
+SELECT *
+FROM Flights, FlightAvailability
+WHERE FlightAvailability.flight_id = Flights.flight_id
+AND FlightAvailability.segment_number = Flights.segment_number
+AND Flights.flight_id &lt; 'AA1115'
+<ph>-- 表式は結合式とすることができます。
+--したがって、FROM句には複数の結合式を置く事ができます。</ph>
+SELECT COUNTRIES.COUNTRY, CITIES.CITY_NAME, FLIGHTS.DEST_AIRPORT
+FROM COUNTRIES LEFT OUTER JOIN CITIES
+ON COUNTRIES.COUNTRY_ISO_CODE = CITIES.COUNTRY_ISO_CODE
+LEFT OUTER JOIN FLIGHTS
+ON Cities.AIRPORT = FLIGHTS.DEST_AIRPORT</b></codeblock> </example>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21583.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21908.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21908.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21908.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21908.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqlj21908" xml:lang="ja">
+<title>TIMEデータ型</title>
+<prolog><metadata>
+<keywords><indexterm>TIME data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>TIMEでは時刻を記録する領域が提供されます。</p></section>
+<refsyn><title>構文</title><codeblock><b>TIME</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title><p><i>java.sql.Time</i></p> </section>
+<section><title>JDBC メタデータ型 (java.sql.Types)</title><p>TIME</p>
+<p>日付・時刻・タイムスタンプをCASTなしで式に混在させることはできません。</p>
+<p>SQLの日付/時刻のデータ型では、<i>java.sql.Time</i>のメソッドで認識できる値が全て許されます。<ph
+conref="../conrefs.dita#prod/productshortname"></ph>は時刻について、以下の書式を用意します。<codeblock>hh:mm[:ss]
+hh.mm[.ss]
+hh[:mm] {AM | PM}</codeblock>上記の三つのうち最初の書式は<i>java.sql.Time</i>の書式です。</p>
+<p>時は一文字あるいは二文字の数字です。分と秒があるなら、それらは二文字の数字で表されなければなりません。</p>
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>は、データベースサーバのロケールに特有な日時の書式を受け付けます。もし文脈が曖昧になる場合、組込みの書式が優先されます。</p> </section>
+<example> <title>例</title><codeblock><b>VALUES TIME('15:09:02')
+VALUES '15:09:02'</b></codeblock> </example>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj21908.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj23075.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj23075.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj23075.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj23075.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<reference id="rrefsqlj23075" xml:lang="ja">
+<title>真偽式</title>
+<prolog><metadata>
+<keywords><indexterm>Boolean expressions</indexterm><indexterm>Boolean operators<indexterm>part
+of WHERE clause</indexterm></indexterm><indexterm>AND boolean operator</indexterm>
+<indexterm>OR boolean operator</indexterm><indexterm>NOT boolean operator</indexterm>
+<indexterm>Comparison boolean operators</indexterm><indexterm>IS NULL boolean
+operator</indexterm><indexterm>IS NOT NULL boolean operator</indexterm><indexterm>LIKE
+boolean operator</indexterm><indexterm>LIKE<indexterm>escape character for</indexterm></indexterm>
+<indexterm>BETWEEN boolean operator</indexterm><indexterm>IN boolean operator</indexterm>
+<indexterm>EXISTS boolean operator</indexterm><indexterm>Quantified comparison
+boolean operator</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section><p>真偽式はWHERE節やチェック制約に置くことができます。
+チェック制約に置く真偽式には、ここで記述されていない制限があります。
+詳細は<xref href="rrefsqlj13590.dita#rrefsqlj13590"></xref>を参照してください。
+WHERE節に置く真偽式の構文は柔軟なものとなっています。具体的な例は、<xref
+href="rrefsqlj33602.dita#rrefsqlj33602">WHERE節</xref>を参照してください。
+</p></section>
+<section><p>真偽式にはブーリアン演算子を一つ以上置くことができます。
+この演算子は<xref href="rrefsqlj23075.dita#rrefsqlj23075/sqlj34517"></xref>に一覧されています。   
+<table frame="all" id="sqlj34517" pgwide="1">
+<title>SQL のブーリアン演算子</title>
+<tgroup cols="3" colsep="1" rowsep="1"><colspec colname="1" colnum="1" colwidth="24*"/>
+<colspec colname="2" colnum="2" colwidth="45*"/><colspec colname="3" colnum="3"
+colwidth="30*"/>
+<thead>
+<row>
+<entry align="left" colname="1" valign="bottom">演算子</entry>
+<entry align="left" colname="2" valign="bottom">説明と例</entry>
+<entry align="left" colname="3" valign="bottom">構文</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="1">AND, OR, NOT</entry>
+<entry colname="2">オペランドにとる真偽式を評価します。   <codeblock><b>(orig_airport = 'SFO') OR
+    (dest_airport = 'GRU')
+<ph>    -- 真を返す。</ph></b></codeblock></entry>
+<entry colname="3"> <codeblock><b>{
+<b><i>  式</i></b> AND
+<b><i>    式</i></b>|
+<b><i>  式</i></b> OR
+<b><i>    式</i></b> |
+  NOT <b><i>式</i></b>
+}</b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">比較演算子</entry>
+<entry colname="2">&lt;, =, &gt;, &lt;=, &gt;=, &lt;&gt; は、全ての組み込みの型に適用することができます。   <codeblock><b>DATE('1998-02-26') &lt;
+    DATE('1998-03-01')
+<ph>-- 真を返す。</ph></b></codeblock></entry>
+<entry colname="3"> <codeblock><b><b><i>式</i></b>
+{
+  &lt; |
+  = |
+  &gt; |
+  &lt;= |
+  &gt;= |
+  &lt;&gt;
+}
+<b><i>式</i></b></b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">IS NULL, IS NOT NULL</entry>
+<entry colname="2">式の結果が空かそうでないかを判定します。
+  <codeblock><b>WHERE MiddleName IS NULL</b></codeblock></entry>
+<entry colname="3"> <codeblock><b><b><i>式</i></b> IS [ NOT ]
+  NULL</b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">LIKE</entry>
+<entry colname="2">文字式が文字パターンと一致するかを判定します。文字パターンには一つ以上のワイルドカードが含まれます。
+  <p>%は最初の文字式にて、該当する位置の任意の文字数(0文字以上)の文字列に一致します。</p>  
+<p>_は文字式にて、該当する位置の一文字に一致します。</p>  
+<p>それ以外の文字は、文字式にて該当する位置の同じ文字に一致します。<codeblock><b>city LIKE 'Sant_'</b></codeblock></p>  
+<p>%や_をワイルドカードではない文字とするには、ESCAPE節で指定するエスケープ文字を使って文字をエスケープします。
+<codeblock><b>SELECT a FROM tabA WHERE a 
+LIKE '%=_' ESCAPE '='</b></codeblock></p>
+<note>
+LIKEによる比較では<?Pub Caret?><ph conref="../conrefs.dita#prod/productshortname"></ph>は、個々の文字を非メタ文字と比較します。これは<ph conref="../conrefs.dita#prod/productshortname"></ph>が=による比較のとき行う処理とは違います。=による比較では左辺の文字列全体が、=演算子の右辺の文字列全体と比較されます。より詳細な情報については、<ph conref="../conrefs.dita#pub/citdevelop"></ph>の<b><ph conref="../conrefs.dita#prod/productshortname"></ph>における文字の照合</b>を参照してください。</note>
+</entry>
+<entry colname="3"> <codeblock><b><b><i>文字式</i></b>
+  [ NOT ] LIKE
+<b><i>  ワイルドカードのある文字式</i></b>
+  [ ESCAPE
+
+'<b><i>エスケープ文字</i></b>']</b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">BETWEEN</entry>
+<entry colname="2">最初のオペランドが二つ目と三つ目のオペランドの間の値であるかを判定します。二つ目のオペランドは三つ目のオペランドより小さな値でなければなりません。
+この演算子は&lt;=と&gt;=が適用できる型に対してのみ適用できます。
+<codeblock><b>WHERE booking_date BETWEEN
+    DATE('1998-02-26') AND
+    DATE('1998-03-01')</b></codeblock></entry>
+<entry colname="3"> <codeblock><b><b><i>式</i></b> [ NOT ]
+BETWEEN <b><i>式</i></b>
+  AND <b><i>式</i></b></b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">IN</entry>
+<entry colname="2">表副問合せや値の並びに作用します。左辺の式の値が表副問合せや値の並びに含まれるならば、真を返します。なお、表副問合せは複数行を返してかまいませんが、列は一つでなければなりません。<codeblock><b>WHERE booking_date NOT IN
+    (SELECT booking_date FROM
+HotelBookings WHERE rooms_available = 0)</b></codeblock></entry>
+<entry colname="3"> <codeblock><b>{
+<b><i> 式</i></b> [ NOT ]
+    IN
+    <b><i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i></b> |
+<b><i>  式</i></b> [ NOT ]
+    IN ( <b><i>式</i></b>
+    [, <b><i>式</i></b> ]* )
+}</b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">EXISTS</entry>
+<entry colname="2">表副問合せに作用して、その表副問合せが行を返すならば真を返し、行が返らないならば偽を返します。表副問合せは複数の列(*を使った場合に限ります。)や行を返すことができます。<codeblock><b>WHERE EXISTS
+  (SELECT *
+  FROM Flights
+  WHERE dest_airport = 'SFO'
+  AND orig_airport = 'GRU')</b></codeblock></entry>
+<entry colname="3"> <codeblock><b>[NOT] EXISTS <b><i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i></b></b></codeblock></entry>
+</row>
+<row>
+<entry colname="1">定量比較</entry>
+<entry colname="2">定量比較はALL、ANY、SOMEの何れかが適用された比較演算子
+(&lt;,=, &gt;, &lt;=, &gt;=, &lt;&gt;)となります。
+<p>
+これは表副問合せに作用します。表副問合せは複数の行を返すことができますが、単一の列しか返せません。</p>  
+<p>ALLが指定された場合、表副問合せが返す全ての値に対して、比較の結果が真でなければなりません。ANYないしSOMEが指定された場合、表副問合せが返す何れかの値に対して、比較の結果が真である必要があります。ANYとSOMEは同じ意味です。
+  <codeblock><b>WHERE normal_rate &lt; ALL
+(SELECT budget/550 FROM Groups) </b></codeblock></p></entry>
+<entry colname="3"> <codeblock><b><b><i>式</i></b>
+  比較演算子
+  {
+    ALL |
+    ANY |
+    SOME
+  }
+  <b><i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i></b></b></codeblock></entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+</refbody>
+</reference>
+<?Pub *0000008541?>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj23075.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native