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 [18/26] - in /db/derby/docs/trunk: ./ src/ja_JP/ src/ja_JP/ref/

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13083.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13083.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13083.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13083.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,45 @@
+<?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="rrefsqlj13083" xml:lang="ja">
+<title>SUM関数</title>
+<prolog><metadata>
+<keywords><indexterm>SUM aggregate function</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>SUM は行の集合に渡って合計値を計算する集約関数です。(<xref href="rrefsqlj33923.dita#rrefsqlj33923"></xref>を参照してください。)
+SUMは数値型の式に対してのみ、適用することができます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>SUM ( [ DISTINCT | ALL ] <i>式</i> )</b></codeblock> 
+<p>DISTINCTおよびALLにより、重複を取り除いたり、留めたりできます。もしALLもDISTINCTもかかれなかった場合、ALLが指定されたものとみなします。例えば、列に1、1、1、1、2という値があるとして、SUM(col)はSUM(DISTINCT col)より大きな値を返します。</p> 
+<p><i><xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i>には、DISTINCTを唯一つ置くことができます。例えば次の問合せは不可です。<codeblock><b>SELECT AVG (DISTINCT flying_time), SUM (DISTINCT miles)
+FROM Flights</b></codeblock></p> 
+<p><i>式</i>には複数の列への参照や式を置くことができますが、他の集約や副問合せを置くことはできません。また評価した結果は組込みの数値型でなければなりません。もし式がNULLと評価された場合、集約はその値を無視します。</p> 
+<p>関数の結果の型は、関数が作用している式の型と同じです。(オーバーフローする可能性もあります。)</p> </refsyn>
+<example> <codeblock><b>-- 全てのエコノミーシートを数えます。
+SELECT SUM (economy_seats) FROM Airlines;
+
+-- SUMを複数の列への参照に使います。
+-- (購入された式の合計を計算します。)
+SELECT SUM (economy_seats_taken + business_seats_taken + firstclass_seats_taken)
+as seats_taken FROM FLIGHTAVAILABILITY;
+</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13590.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13590.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13590.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13590.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,219 @@
+<?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="rrefsqlj13590" xml:lang="ja">
+<title>CONSTRAINT 節</title>
+<prolog><metadata>
+<keywords><indexterm>CONSTRAINT clause</indexterm><indexterm>Constraints</indexterm><indexterm>Storage
+properties<indexterm>for indexes backing constraints</indexterm></indexterm><indexterm>Backing
+indexes<indexterm>specifying storage properties for</indexterm></indexterm><indexterm>Tables<indexterm>specifying
+page size for</indexterm><indexterm>specifying properties for</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>CONSTRAINT節は、<xref href="rrefsqlj24513.dita#rrefsqlj24513">CREATE TABLE 文</xref>や<xref
+href="rrefsqlj81859.dita#rrefsqlj81859">ALTER TABLE 文</xref>に任意に記述できる構造です。制約とはデータが従わなければならない規則です。制約には必要に応じて名前を与えることができます。</p> 
+<p>制約は以下のいずれかです。<ul>
+<li><indexterm>Column-level constraints</indexterm><indexterm>Constraints<indexterm>column-level</indexterm></indexterm>列レベルの制約<p>列レベルの制約は表にある単一の列を参照します。列名を指定するわけではなりません。(ただしチェック制約は除きます。)この制約は対象の列を参照しています。</p></li>
+<li><indexterm>Table-level constraints</indexterm><indexterm>Constraints<indexterm>table-level</indexterm></indexterm>表レベルの制約   <p>表レベルの制約は表にある一つあるいはそれ以上の列を参照します。表レベルの制約は適用する列の名前を参照します。表レベルのチェック制約は0以上の列を参照します。</p></li>
+</ul></p> 
+<p><indexterm>Column-level constraints<indexterm>used in CREATE
+TABLE statement</indexterm></indexterm><indexterm>Constraints<indexterm>column-level</indexterm></indexterm>列制約には以下があります。
+<ul>
+<li>NOT NULL   <p>この列の値はNULLにできないことを指定します。(この種類の制約には名前を与えることができません。)</p></li>
+<li>PRIMARY KEY<indexterm>Primary keys<indexterm>creating</indexterm><indexterm>adding</indexterm></indexterm> 
+ <p>列により表中の行が一意に識別されることを指定します。列の値はNOT NULLと定義されなければなりません。</p> 
+<note>ALTER TABLEにより主キーを追加しようとして、空の値を持つ列をその主キーに含めようとした場合、エラーとなって主キーは追加されません。より詳細な情報は、<xref href="rrefsqlj81859.dita#rrefsqlj81859"></xref>を参照してください。</note></li>
+<li>UNIQUE   <p>列の値が一意でなければならないと指定します。NULLの値は不可です。</p></li>
+<li>FOREIGN KEY   <p>列の値が、参照先の主キー、一意キーあるいはNULLでなければならないことを指定します。</p></li>
+<li>CHECK   <p>列の値の規則を指定します。</p></li>
+</ul></p> <p><indexterm>Table constraints<indexterm>used in CREATE TABLE statement</indexterm></indexterm><indexterm>Constraints<indexterm>table-level</indexterm
+></indexterm>
+表制約には以下があります。<ul>
+<li>PRIMARY KEY<indexterm>Primary keys<indexterm>creating</indexterm><indexterm>adding</indexterm></indexterm> 
+<p>
+一つ以上の列により表の行が一意に識別されることを表します。NULLの値は不可です。</p></li>
+<li>UNIQUE   <p>列群の値が一意であると指定します。列はNOT NULLと定義されなければなりません。</p></li>
+<li>FOREIGN KEY   <p>列群の値が参照先の主キー、一意列あるいはNULLでなければならないことを指定します。</p> 
+<note>外部キーが複数の列から構成されている場合、<i>何れかの</i>列がNULLであるならキーはNULLと見なされます。NULLでない列にどのような値があっても、挿入することができます。</note></li>
+<li>CHECK   <p>表の値に適用される様々な規則を指定します。</p></li>
+</ul></p> <p><indexterm>Constraints<indexterm>differences between column-level
+and table-level</indexterm></indexterm>
+列制約と表制約は同じ機能を持ちますが、何に対して指定できるかが違います。表制約では一つ以上の列に対して、PRIMARY KEY、UNIQUE、CHECK、FOREIGN KEY制約を定義できます。列レベルの制約では(チェック制約を除いて)、一つの列への参照しか定義できません。</p></section>
+<refsyn><title>構文</title> </refsyn>
+<section><title>主キーと一意性制約</title> 
+<p><indexterm>Primary
+key constraints</indexterm><indexterm>Unique constraints</indexterm>
+主キーでは表の行を一意に指定する列の集合が定義されます。</p> 
+<p>主キー制約を定義しした場合、主キーに含まれる何れの列の値もNULLであってはなりません。つまり何れの列もNULL値をとることができなくなります。</p> 
+<p>あらかじめNOT NULLと定義されているなら、既存の列をALTER
+TABLE ADD PRIMARY KEY という文で主キーに加えることができます。NULLの値は不可です。もし列にNULL値があれば、システムは主キー制約の追加を行いません。詳細な情報は<xref href="rrefsqlj81859.dita#rrefsqlj81859"></xref>を参照してください。</p> 
+<p>表にはPRIMARY KEY制約を一つまでしか定義できません。しかし複数のUNIQUE制約を定義することはできます。</p> </section>
+<section><title>外部キー制約</title> <p><indexterm>Foreign keys</indexterm><indexterm>Referential
+integrity<indexterm>via foreign keys</indexterm></indexterm>
+外部キー制約により、データベースの参照整合性を強制することができます。外部キーとは他の表のキーを参照する列あるいは列群です。(時によってはあまり多いことではありませんが、同じ表を参照することもあります。)外部キーは参照先の主キー制約・外部キー制約に一致するデータ型を持つ列を持たなければなりません。</p> 
+<p>表レベルの外部キー制約では、表の列を指定して制約を定義します。このとき同じ列を一回より多く使うことはできません。</p> 
+<p><i>参照定義</i>(参照される表の列の一覧です。)に列が定義される場合、それは参照先の表にある一意性制約あるいは主キー制約に対応していなければなりません。
+もし表に一意性制約があるなら、<i>参照定義</i>では列の一覧を省くことができます。</p> 
+<p>もし<i>参照定義</i>にて列の一覧が指定されておらず、参照先の表に主キーも定義されていないならば、例外が挙がります。(この例外は、もし参照先の表に一意性制約しかないならば、その列の一覧を<i>参照定義</i>に含めなければならない、という意味です。)</p> 
+<p>参照先の一意性制約あるいは主キー制約に一致する値があれば、外部キー制約は守られているものとされます。もし外部キー制約が複数の列で定義されており、いずれかの列がNULLであるなら、外部キーの値はNULLとみなされます。
+  <note>SQL-92標準にて言及があるように、複数の列で定義された外部キー制約では、制約された列が参照先の列にない値をとることが可能な場合があります。この状況を回避するために外部キーの全列にはNOT NULL制約を定義するべきです。</note></p> </section>
+<section><title>外部キー制約とDML</title> 
+<p>有効になっている外部キー制約が定義された表に挿入や更新が行われるとき、<ph conref="../conrefs.dita#prod/productshortname"></ph>はその行が外部キー制約を破っていないか知るために、参照先の表で対応する参照キーの値を調査します。
+もし制約が守られていなければ、<ph conref="../conrefs.dita#prod/productshortname"></ph>は例外を挙げて、挿入ないし更新を却下します。</p> 
+<p>参照されたキー(外部キーにより参照される、主キー制約あるいは一意制約)のある表の行を、更新または削除した場合、<ph conref="../conrefs.dita#prod/productshortname"></ph>はそのキーを参照するすべての外部キー制約を調べて、行の削除や変更が制約違反を引き起こさないか調査します。
+もし行への削除や変更が制約違反を引き起こすのであれば、変更や削除は許可されず<ph conref="../conrefs.dita#prod/productshortname"></ph>は例外を挙げます。</p> 
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>が制約のチェックを行うのは文が実行される時です。トランザクションがコミットされる時ではありません。</p> </section>
+<section><title>支援する索引</title> <p><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>
+UNIQUE、PRIMARY KEY、FOREIGN KEYの各制約は制約を強制あるいは支援するための索引を生成します。(これは<i>支援索引</i>と呼ばれることがあります。)
+UNIQUE制約とPRIMARY KEY制約は一意索引を生成します。FOREIGN KEY索引は非一意な索引を作成んします。したがって、列や列の集合にUNIQUE制約やPRIMARY KEY制約、FOREIGN KEY索引が定義されている場合は、パフォーマンス向上のための索引をそれらの列に作成する必要はありません。<ph conref="../conrefs.dita#prod/productshortname"></ph>が代わりに作成してくれています。<xref href="rrefsqlj20937.dita#rrefsqlj20937/sqlj27363"></xref>も参照してください。</p>
+<p>問い合わせを最適化される時にオプティマイザはこれらの索引を利用できます。(<xref href="rrefsqlj20937.dita#rrefsqlj20937"></xref>を参照してください。)またこれらの索引はシステムが自動的に生成した名前を持ちます。</p> <p>支援索引はDROP INDEX文では破棄できません。制約を破棄するか、表を破棄する必要があります。</p> </section>
+<section><title>チェック制約</title> <p><indexterm>Check constraints</indexterm>
+チェック制約は表の内容に関する様々な規則を指定するために利用することができます。チェック制約には(真偽式で記述される)検索条件を指定できます。表中の全行について、この検索条件は満たされていなければなりません。INSERTやUPDATEにより行が変更される時、検索条件は変更される行に対して適用されます。何れかのチェック制約に違反すると、文全体が中断されã�
 �¾ã™ã€‚</p> </section>
+<section id="sqlj57077"><title>検索条件の要件</title> 
+<p>チェック制約が列定義の一部として指定された場合、制約は同じ列のみ参照できます。
+表の定義の一部として指定されたチェック制約は、CREATE TABLE文にて先立って定義された列を参照することができます。</p> 
+<p>検索条件は同じ値に適用された場合、常に同じ値を返す必要があります。したがって、以下のいずれも検索条件には置くことができません。<ul>
+<li>動的なパラメータ (?)</li>
+<li>日時関数 (CURRENT_DATE、CURRENT_TIME、CURRENT_TIMESTAMP)</li>
+<li>副問い合わせ</li>
+<li>ユーザー関数 (例えばUSER、SESSION_USER、CURRENT_USER)</li>
+</ul></p> </section>
+<section><title>参照先に従う動作</title> <p><indexterm>Referential actions</indexterm><indexterm>Constraint
+clause<indexterm>referential actions in</indexterm></indexterm>
+外部キーの定義にて、動作(CASCADE、RESTRICT、SET NULLおよびNO ACTION)が適切に書かれたON DELETE節や/とON UPDATE節を記述できます。
+これらの節は、表の主キーが更新ないし削除されたときに、外部キーの関係が損なわれないように、対応する外部キーを変更したり、操作を拒絶したりする事を記述します。</p> 
+<p>参照性の制約の定義を行うとき、併せて更新または削除の規則を定義できます。</p> 
+<p>更新の規則は、親あるいは依存する表の行が更新されたときに適用されます。指定できるのは、NO ACTIONあるいはRESTRICTです。</p> 
+<p>親表の主キーの値が更新され、更新の規則がRESTRICTであった場合、<ph conref="../conrefs.dita#prod/productshortname"></ph>は依存する表の外部キー制約を調べます。もし依存表の何れかの行が外部キー制約違反となるなら、トランザクションは巻き戻されます。</p> 
+<p>もし更新の規則がNO ACTIONであったなら、<ph conref="../conrefs.dita#prod/productshortname"></ph>は更新が全て終わった<i>後</i>からトリガが実行される<i>前</i>に、依存する表の外部キー制約をチェックします。もし何れかの行が外部キー制約違反であるなら、文の実行は却下されます。</p> 
+<p>依存する表にある列の値が変更され、その値が外部キーの一部であった場合、更新の規則は暗黙裡にNO ACTIONとなります。NO ACTIONであるということは、外部キーが空ではない値に更新された時、更新後の値は親表の主キーと一致しなければならないことを意味します。もし親表の主キーと一致しないのであれば、文は却下されます。</p> 
+<p>削除の規則は親表の行が削除され、その行に依存する行が参照性制約の依存表にある場合に適用されます。このとき依存表の行も削除されることがあり、これを親表の削除が依存表に<i>伝播した</i>といいます。もし依存表が親表でもあるならば、今度はそこに定義された動作がその依存表に適用されます。</p> 
+<p>指定できる値は、NO ACTION、RESTRICT、CASCADE、それとSET NULLです。SET NULLは外部キーの何れかの列がnullの値を持つことができる場合のみ指定できます。</p> 
+<p>もし削除の規則が、</p> <p>NO ACTIONなら<ph
+conref="../conrefs.dita#prod/productshortname"></ph>は依存表の外部キー制約を、削除が全て終わった<i>後</i>からトリガが実行される<i>前</i>にチェックします。もし依存表の何れかの行が外部キー制約に違反するなら文は却下されます。</p> 
+<p>RESTRICTなら、<ph
+conref="../conrefs.dita#prod/productshortname"></ph>は依存表の外部制約を調べ、依存表の何れかの行が外部キー制約に違反する場合、トランザクションを巻き戻します。</p> 
+<p>CASCADEなら、削除が依存表に伝播されます。(適用可能な伝播先の依存表にも伝播します。)</p> 
+<p>SET NULLなら、依存表の外部キーにて空にできる列の値が空になります。(この場合も、依存表に依存する表にある外部キーの空にできる列の値は空になります。)</p> 
+<p>表を親とする参照性の制約には、個々の削除の規則があります。そして適用される全ての削除の規則によって、削除処理の結果が決まります。
+したがって依存先がRESTRICTやNO ACTIONの参照性制約をもつなら、行は削除できません。
+同様に削除が伝播してゆく場合でも、伝播先の依存行の参照性制約にて削除の規則がRESTRICTやNO ACTIONで定義されていれば、行を削除できません。</p> 
+<p>親の表から行を削除すると、ほかの表への影響があります。親表の削除により影響を受けるすべての表を、親表と削除の関係があるといいます。削除によりこれらの表の行に対して次のような影響が及びます。
+<ul>
+<li>もし削除の規則がRESTRICTあるいはNO ACTIONであれば、依存表は処理に関連しますが、処理の影響は受けません。(つまり<ph conref="../conrefs.dita#prod/productshortname"></ph>は表の値を検証しますが、削除はしません。) </li>
+<li>もし削除の規則がSET NULLであれば、親表の行が削除されたり、削除が伝播された場合、依存表の行の値は更新の対象となります。</li>
+<li>もし削除の規則がCASCADEであれば、親表にて削除が行われた場合、依存表の行も削除されます。</li>
+<li>もし依存表が親表でもある場合、ここに書かれた処理が今度はその依存表に行われます。</li>
+</ul></p> </section>
+<example id="sqljidx6080"><title>例</title> 
+<codeblock><b>-- OUT_TRAY_PKという名前の列レベルの主キー制約:
+CREATE TABLE SAMP.OUT_TRAY
+	(
+	SENT TIMESTAMP,
+	DESTINATION CHAR(8),
+	SUBJECT CHAR(64) NOT NULL CONSTRAINT OUT_TRAY_PK PRIMARY KEY,
+	NOTE_TEXT VARCHAR(3000) 
+   );
+
+-- 表レベルの主キー制約では二つの列を
+-- キーの定義に記述できます。
+CREATE TABLE SAMP.SCHED 
+	(
+	CLASS_CODE CHAR(7) NOT NULL, 
+	DAY SMALLINT NOT NULL, 
+	STARTING TIME, 
+	ENDING TIME,
+	PRIMARY KEY (CLASS_CODE, DAY)
+	);
+
+-- 列レベルの制約を算術チェックのために使います。
+-- 表レベルの制約を従業員への税金が賞与を超えないようにするため
+-- 使います。
+CREATE TABLE SAMP.EMP 
+	(
+	EMPNO CHAR(6) NOT NULL CONSTRAINT EMP_PK PRIMARY KEY,
+	FIRSTNME CHAR(12) NOT NULL,
+	MIDINIT vARCHAR(12) NOT NULL,
+	LASTNAME VARCHAR(15) NOT NULL,
+	SALARY DECIMAL(9,2) CONSTRAINT SAL_CK CHECK (SALARY &gt;= 10000),
+	BONUS DECIMAL(9,2), 
+	TAX DECIMAL(9,2),
+	CONSTRAINT BONUS_CK CHECK (BONUS &gt; TAX)
+	);
+
+-- MEAL列が適切な略字のみとるよう、チェック制約を使います。
+CREATE TABLE FLIGHTS
+	(
+	FLIGHT_ID CHAR(6) NOT NULL ,
+	SEGMENT_NUMBER INTEGER NOT NULL ,
+	ORIG_AIRPORT CHAR(3),
+	DEPART_TIME TIME,
+	DEST_AIRPORT CHAR(3),
+	ARRIVE_TIME TIME,
+	MEAL CHAR(1) CONSTRAINT MEAL_CONSTRAINT 
+	CHECK (MEAL IN ('B', 'L', 'D', 'S')),
+	PRIMARY KEY (FLIGHT_ID, SEGMENT_NUMBER)
+	);
+
+CREATE TABLE METROPOLITAN
+	(
+	HOTEL_ID INT NOT NULL CONSTRAINT HOTELS_PK PRIMARY KEY,
+	HOTEL_NAME VARCHAR(40) NOT NULL,
+	CITY_ID INT CONSTRAINT METRO_FK REFERENCES CITIES
+	);
+
+-- 表レベルの主キー制約と表レベルの外部キー制約を指定して、
+-- 表を作成します。
+CREATE TABLE FLTAVAIL
+	(
+	FLIGHT_ID CHAR(6) NOT NULL, 
+	SEGMENT_NUMBER INT NOT NULL, 
+	FLIGHT_DATE DATE NOT NULL, 
+	ECONOMY_SEATS_TAKEN INT,
+	BUSINESS_SEATS_TAKEN INT,
+	FIRSTCLASS_SEATS_TAKEN INT, 
+	CONSTRAINT FLTAVAIL_PK PRIMARY KEY (FLIGHT_ID, SEGMENT_NUMBER), 
+	CONSTRAINT FLTS_FK
+	FOREIGN KEY (FLIGHT_ID, SEGMENT_NUMBER)
+	REFERENCES Flights (FLIGHT_ID, SEGMENT_NUMBER)
+	);
+<ph>-- 列に一意性制約を加える。</ph>
+ALTER TABLE SAMP.PROJECT 
+ADD CONSTRAINT P_UC UNIQUE (PROJNAME);
+
+-- 列レベルの外部キー制約を利用して、
+-- city_id列がCities表の主キーを参照する表を作成する。
+CREATE TABLE CONDOS
+	(
+	CONDO_ID INT NOT NULL CONSTRAINT hotels_PK PRIMARY KEY,
+	CONDO_NAME VARCHAR(40) NOT NULL,
+	CITY_ID INT CONSTRAINT city_foreign_key
+	REFERENCES Cities ON DELETE CASCADE ON UPDATE RESTRICT
+	);</b></codeblock> </example>
+<section><title>文の依存追跡システム</title> 
+<p>INSERT文やUPDATE文は対象表にある全制約の影響を受けます。
+DELETE文は一意性制約・主キー制約・外部キー制約の影響を受けます。
+対象表にこれらの制約が追加されたり削除されたりした場合、これらの文は無効となります。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13658.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13658.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13658.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13658.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"
+ "../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="rrefsqlj13658" xml:lang="ja" >
+<title>ORDER BY 節</title>
+<shortdesc>ORDER BY節はSELECT文の省略可能な要素です。
+ORDER BY節にて<varname>ResultSet</varname>にある行の順番を指定できます。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>ORDER BY clause<indexterm>syntax</indexterm></indexterm>
+<indexterm>ASC<indexterm>implied in ORDER BY clause</indexterm></indexterm>
+<indexterm>DESC<indexterm>optional element of ORDER BY clause</indexterm></indexterm>
+<indexterm>ORDER BY clause<indexterm>affecting cursors</indexterm></indexterm>
+<indexterm>ORDER BY clause<indexterm>specifying expressions</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<refsyn><title>Syntax</title><codeblock><b>ORDER BY { <i><xref href="rrefcolumnname.dita#rrefcolumnname"></xref></i> | <i>ColumnPosition</i> | <i>Expression</i> }
+    [ ASC | DESC ]
+    [ , <i><xref href="rrefcolumnname.dita#rrefcolumnname">列名</xref></i> | <i>列位置</i> | <i>式</i> 
+        [ ASC | DESC ] ] * </b></codeblock><dl><dlentry>
+<dt>列名</dt>
+<dd>問い合わせの<xref href="rrefsqlj41360.dita#rrefsqlj41360"></xref>の<varname>選択項目</varname>にて、可視である名前を参照します。
+ORDER BYで指定する列名はSELECTされる項目になくとも構いません。</dd>
+</dlentry><dlentry>
+<dt>列位置</dt>
+<dd><xref href="rrefsqlj41360.dita#rrefsqlj41360"></xref>の<varname>選択項目</varname>の、列の番号を指定する整数です。
+<parmname>列位置</parmname>は、0より大きくかつ結果表の列数以下でなければなりません。言い換えれば、列で並び変えるために、その列がSELECTされる項目にある必要があります。</dd>
+</dlentry><dlentry>
+<dt>式</dt>
+<dd>並び変えを行うキーの式で、数値や文字列、日付などの式とすることができます。
+<i>式</i>はスカラー副問い合わせやCASE式などの、行の値における式とすることができます。
+</dd>
+</dlentry><dlentry>
+<dt>ASC</dt>
+<dd>結果を昇順で返すことを指定します。方向が指定されない場合、ASCが既定です。</dd>
+</dlentry><dlentry>
+<dt>DESC</dt>
+<dd>結果を降順で返すことを指定します。</dd>
+</dlentry></dl> </refsyn>
+<section><title>但し書き</title><ul>
+<li>SELECT DISTINCTが指定されたり、SELECT文にGROUP BY節があった場合、ORDER BYする列はSELECTされる項目になければなりません。</li>
+<li>ORDER BY節があると、SELECT文を更新可能カーソルとすることができません。より詳細な情報は、<xref href="rrefsqlj41360.dita#rrefsqlj41360/sqlj15384"></xref>を参照してください。
+例えば、もしINTEGERの列に整数があると、ソートのときNULLは1より大きいと見なされます。言い換えれば、NULLの値は、より上の位置にソートされます。</li>
+</ul></section>
+<example><title>相関名を使う例</title>
+<p>相関名が選択項目にて指定されていれば、結果セットを相関名で並び変えできます。
+たとえばCITIESデータベースから、COUNTRY列にNATIONという相関名を与えて、CITY_NAME列とCOUNTRY列に格納されているすべての情報を返す場合、次のようなSELECT文を書きます。</p>
+<codeblock>SELECT CITY_NAME, COUNTRY AS NATION 
+    FROM CITIES 
+    ORDER BY NATION
+</codeblock> </example>
+<example><title>数式を使う例</title>
+<p>結果セットを数式で並び変えることができます。例を挙げます。<codeblock>SELECT name, salary, bonus FROM employee 
+   ORDER BY salary+bonus</codeblock>この例では、salaryとbonus列はDECIMALデータ型です。</p></example>
+<example><title>関数を使う例</title><p>結果セットを関数の呼び出し結果を元に並び変えることができます。例を挙げます。<codeblock>SELECT i, len FROM measures 
+   ORDER BY sin(i) 
+</codeblock></p></example>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13733.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13733.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13733.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj13733.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,42 @@
+<?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="rrefsqlj13733" xml:lang="ja">
+<title>CHAR データ型</title>
+<prolog><metadata>
+<keywords><indexterm>CHAR data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>CHARは固定長の領域で文字列を記録します。</p></section>
+<refsyn><title>Syntax</title> <codeblock><b>CHAR[ACTER] [(<i>長さ</i>)] </b></codeblock> <p><i>長さ</i> は符号のない定数の整数値です。長さの既定値は1です。</p> </refsyn>
+<section><title>実行時の対応するJavaの型</title> <p><i>java.lang.String</i></p> </section>
+<section><title>JDBCのメタデータ型(java.sql.Types)</title> 
+<p>CHAR</p> 
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>は文字列値が型の長さより短い場合、空白で空きを詰めます。<ph conref="../conrefs.dita#prod/productshortname"></ph> は文字列値が型の長さより長い場合、空白を切り捨てます。空白以外の文字を残した文字列が長すぎる場合、例外が挙がります。<xref href="rrefsqlj23075.dita#rrefsqlj23075">比較演算子</xref>がCHARに適用された場合、文字列長の短い値には空白がつめられて、文字列長の長い値と同じ長さになる
 ように処理されます。</p> 
+<p>CHARとVARCHARの値が式にて混在して利用されていた場合、長さの短い値はスペースで詰められて、文字列長の長い値と同じ長さになるよう処理されます。</p> 
+<p>文字列の定数の型はCHARです。</p> </section>
+<section><title>実装レベルで定義されている事</title> 
+<p>CHARデータ型の最大長は<i>java.lang.Integer.MAX_VALUE</i>です。</p> </section>
+<example> <codeblock><b><ph>-- 文字列の定数では連続した引用符により、
+-- 一重引用符あるいはアポストロフィーを表します。</ph>
+VALUES 'hello this is Joe''s string'</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14122.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14122.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14122.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14122.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,48 @@
+<?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="rreffsqlj14122" xml:lang="ja">
+<title>REAL データ型</title>
+<prolog><metadata>
+<keywords><indexterm>REAL data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>REAL型ではIEEE浮動小数点数の記法に従う数が4バイトの領域に記録されます。</p></section>
+<refsyn><title>記法</title> <codeblock><b>REAL</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title> <p><i>java.lang.Float</i></p> </section>
+<section><title>JDBCのメタデータ型(java.sql.Types)</title> <p>REAL</p> </section>
+<section><title>制限</title> <p>REALの値の範囲:</p> <ul>
+<li>REALの最小値: -3.402E+38</li>
+<li>REALの最大値: 3.402E+38</li>
+<li>REALの最小の正の値: 1.175E-37</li>
+<li>REALの最大の負の値: -1.175E-37</li>
+</ul> <p>これらの制限はJavaでの<codeph>java.lang.Float</codeph>型の制限とは異なります。</p> 
+<p>これらの範囲外の値が計算されたり代入されると例外があがります。
+算術演算では結果は零に丸め処理<b>されません</b>。
+もし値が小さすぎる場合は例外が挙がります。アンダーフローを検知するために、算術演算は倍精度で行われます。</p> 
+<p>浮動小数点数の定数は文字長が30文字までに制限されています。
+<codeblock>-- この例では定数が長すぎるためエラーとなります。
+<b>values 01234567890123456789012345678901e0;</b></codeblock></p> 
+<p>式において他のデータ型と混在して利用された場合、結果のデータ型は<xref href="rrefsqlj27767.dita#rrefsqlj27767"></xref>に記述された規則にのっとって決まります。</p> 
+<p><xref href="rrefsqlj20204.dita#rrefsqlj20204"></xref>を参照してください。</p> 
+<p>定数は常にDOUBLE PRECISIONとされます。REALに変換するにはCASTを使ってください。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14854.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14854.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14854.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj14854.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,48 @@
+<?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 xml:lang="ja" id="rrefsqlj14854">
+<title>HAVING 節</title>
+<prolog><metadata>
+<keywords><indexterm>HAVING clause</indexterm>
+</keywords>
+</metadata>
+</prolog><refbody>
+<section>
+<p>HAVING節により<i><xref href="rrefselectexpression.dita#rrefselectexpression"/></i>のGROUP BYの結果が絞り込まれます。WHERE節が選択列一覧に作用するのとは異なり、HAVING節は表から分類された部分集合に対して作用します。もしGROUP BY節がなければ、HAVING節は結果を単独の分類と見なして作用します。
+SELECT節にてGROUP BY句のない列を直接参照することはできません。しかし定数や集約、特殊変数を参照することはできます。</p></section>
+<refsyn><title>構文</title>
+<codeblock><b>HAVING <i>検索条件</i></b></codeblock>
+<p><i>検索条件</i>は特殊な<i>真偽式</i>で、分類列(<xref href="rrefsqlj32654.dita#rrefsqlj32654"/>を参照してください。)か、集約式の一部である列のみ含める事ができます。
+例えば以下の例では、SALARYという列は分類の列や集約、副問い合わせにある列ではないので、この文は不正です。
+<codeblock><b>-- SELECT COUNT(*)
+-- FROM SAMP.STAFF
+-- GROUP BY ID
+-- HAVING SALARY &gt; 15000</b></codeblock></p>
+<p>HAVING節の集約はSELECTの一覧になくてもかまいません。
+もしHAVING節が副問い合わせを含むならば、その副問い合わせは分類の列についてのみ、外の問い合わせを参照することができます。</p>
+</refsyn>
+<example>
+<codeblock><b><ph>-- 2席以上の航路ごとに、エコノミー席の合計を調べる。</ph>
+SELECT SUM(ECONOMY_SEATS_TAKEN), AIRLINE_FULL
+FROM FLIGHTAVAILABILITY, AIRLINES
+WHERE SUBSTR(FLIGHTAVAILABILITY.FLIGHT_ID, 1, 2) = AIRLINE
+GROUP BY AIRLINE_FULL
+HAVING COUNT(*) &gt; 1
+</b></codeblock>
+</example></refbody></reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15147.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15147.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15147.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15147.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="rrefsqlj15147" xml:lang="ja">
+<title>LONG VARCHAR型</title>
+<prolog><metadata>
+<keywords><indexterm>LONG VARCHAR data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>LONG VARCHAR型により最大で32,700文字からなる文字列を記録できます。この型の列を定義するとき、最大長を指定する必要がないことを除けば、この型はVARCHARと同様です。</p> </section>
+<refsyn><title>構文</title> <codeblock><b>LONG VARCHAR</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title> <p><i>java.lang.String</i></p> </section>
+<section><title>JDBCメタデータ型 (java.sql.Types)</title> <p>LONGVARCHAR</p> 
+<p>Javaの値をSQLの値に変換するとき、LONG VARCHARに対応するJavaの型は存在しません。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15260.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15260.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15260.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15260.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,58 @@
+<?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="rrefsqlj15260" xml:lang="ja">
+<title>DECIMAL データ型</title>
+<prolog><metadata>
+<keywords><indexterm>DECIMAL data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>DECIMALにより精度と目盛りを指定して正確な数を扱えます。
+この型では精度(小数点の左右の桁数の合計)と目盛り(小数点以下の桁数)を指定できます。
+記憶装置にて必要とされる領域のサイズは、精度により決まります。</p></section>
+<refsyn><title>構文</title> <codeblock><b>{ DECIMAL | DEC } [(<i>精度</i> [, <i>目盛り</i> ])]</b></codeblock> 
+<p><i>精度</i>は1から31の数をとります。<i>目盛り</i>は精度以下の数をとります。</p> 
+<p>目盛りが指定されなかった場合の既定値は0となります。精度が指定されなかった場合の既定値は5となります。</p> 
+<p>DECIMALに代入することが可能なのは、小数部以外が失われない範囲の数です。
+DECIMALの値から小数部を無くする場合、<ph conref="../conrefs.dita#prod/productshortname"></ph>は切捨てを行います。</p> 
+<p>例えば、<codeblock>-- この型変換で失われるのは小数部のみです。
+<b>values cast (1.798765 AS decimal(5,2));</b>
+1
+--------
+1.79
+-- この型変換はうまく行きません。
+<b>values cast (1798765 AS decimal(5,2));</b>
+1
+--------
+ERROR 22003: The resulting value is outside the range 
+for the data type DECIMAL/NUMERIC(5,2).</codeblock></p> 
+<p>他のデータ型が式にて混在して利用されていた場合、式の結果となる型は<xref href="rrefsqlj27767.dita#rrefsqlj27767"></xref>で書かれたとおりに決まります。</p> 
+<p><xref
+href="rrefsqlj20204.dita#rrefsqlj20204"></xref>も参照してください。</p> 
+<p>二つのDECIMALの値が式にて用いられていた場合、式の結果となる型は<xref href="rrefsqlj36146.dita#rrefsqlj36146"></xref>に記述された規則に従って決まります。</p> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title> <p><i>java.math.BigDecimal</i></p> </section>
+<section><title>JDBC のメタデータ型 (java.sql.Types)</title> <p>DECIMAL</p> </section>
+<example> <codeblock><b>VALUES 123.456
+
+VALUES 0.001</b></codeblock> 
+<p>BIGINTには大きすぎる整数の定数は、DECIMALの定数となります。</p> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15309.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15309.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15309.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15309.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,42 @@
+<?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 xml:lang="ja" id="rrefsqlj15309">
+<title>WHERE CURRENT OF 節</title>
+<prolog><metadata>
+<keywords><indexterm>WHERE CURRENT OF clause</indexterm>
+</keywords>
+</metadata>
+</prolog><refbody>
+<section>
+<p>WHERE CURRENT OF節はUPDATEやDELETE文にて使うことができます。
+これにより更新可能なカーソルの位置による更新や削除が行えます。
+更新可能なカーソルの詳細については、<xref href="rrefsqlj41360.dita#rrefsqlj41360"/>を参照してください。</p></section>
+<refsyn><title>構文</title>
+<codeblock><b>WHERE CURRENT OF <i><xref href="rrefcursorname.dita#rrefcursorname">カーソル名</xref></i></b></codeblock>
+</refsyn>
+<example>
+<codeblock expanse="column">Statement s = conn.createStatement();
+s.setCursorName("AirlinesResults");
+ResultSet rs = conn.executeQuery(
+    "SELECT Airline, basic_rate " +
+    "FROM Airlines FOR UPDATE OF basic_rate");
+Statement s2 = conn.createStatement();
+s2.executeUpdate("UPDATE Airlines SET basic_rate = basic_rate " +
+    "+ .25 WHERE CURRENT OF AirlinesResults");</codeblock>
+</example></refbody></reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15446.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15446.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15446.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15446.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,69 @@
+<?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="rrefsqlj15446" xml:lang="en-us">
+<title>CREATE VIEW 文</title>
+<prolog><metadata>
+<keywords><indexterm>CREATE VIEW statement</indexterm><indexterm><indexterm>SQL
+statements</indexterm>CREATE VIEW</indexterm><indexterm>views<indexterm>creating</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>ビューとはクエリにより定義された仮想的な表です。表は破棄するまで利用可能なディクショナリの情報です。ビューは更新できません。</p>
+<p>限定されたビューの名前にて、スキーマ名は<i>SYS</i>で始まってはなりません。</p>
+<p>ビューの所有者は自動的にSELECT権限を得ます。ビューの所有者からSELECT権限を剥奪することはできません。<xref href="rrefattrib26867.dita#rrefattrib26867">データベースの所有者</xref>は自動的にビューへのSELECT権限を持ち、SELECT権限を他のユーザに付与することができます。データベースの所有者からSELECT権限を剥奪することはできません。</p>
+<p>ビューの所有者はビューが参照する情報を所有する場合のみ、他のユーザにSELECT権限を付与することができます。</p><p>ビューの所有者が、ビューが参照する情報を所有していない場合、ビューの所有者は適切な権限を付与されていなければなりません。例えば、<codeph>user2</codeph>という認証識別子が<codeph>user1.t1</codeph>という表と<codeph>user1.f_abs()</codeph>という関数を参照する、<codeph>user2.v2</codeph>というビューを�
 �½œæˆã™ã‚‹å ´åˆã€<codeph>user2</codeph>は<codeph>user1.t1</codeph>へのSELECT権限と<codeph>user1.f_abs()へのEXECUTE権限を持たなければなりません。</codeph>. </p>
+<p>SELECT権限を付与する権限は剥奪できません。ビューが参照する情報への必要な権限が剥奪された場合、ビューは破棄されます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>CREATE VIEW <i><xref href="rrefviewname.dita#rrefviewname">ビュー名</xref></i>
+    [ ( <i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> [, <i><xref
+href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i>] * ) ]
+AS <i><xref href="rrefsqlj21571.dita#rrefsqlj21571">問い合わせ</xref></i> </b></codeblock> <p>ビューの定義にビューの列一覧を書くことで、ビューの列に明示的な名前を与えることができます。
+ビューの列一覧がない場合、ビューの列名は元となる問い合わせの列名を引継ぎます。ビューの全列は一意な名前を持たなければなりません。</p> </refsyn>
+<example> <codeblock><b>CREATE VIEW SAMP.V1 (COL_SUM, COL_DIFF)
+	AS SELECT COMM + BONUS, COMM - BONUS
+	FROM SAMP.EMPLOYEE;
+
+CREATE VIEW SAMP.VEMP_RES (RESUME)
+	AS VALUES 'Delores M. Quintana', 'Heather A. Nicholls', 'Bruce Adamson';
+
+CREATE VIEW SAMP.PROJ_COMBO 
+	(PROJNO, PRENDATE, PRSTAFF, MAJPROJ) 
+	AS SELECT PROJNO, PRENDATE, PRSTAFF, MAJPROJ
+	FROM SAMP.PROJECT UNION ALL 
+SELECT PROJNO, EMSTDATE, EMPTIME, EMPNO 
+	FROM SAMP.EMP_ACT 
+	WHERE EMPNO IS NOT NULL;</b></codeblock> </example>
+<section><title>文の依存</title> 
+<p>ビューの定義は参照する表やビューに依存します。
+ビューを参照するDML(data manipulation language)文は、ビューが依存するのと同様に、そのビューに依存します。
+ビューを参照する文は、ビューが利用する索引に依存します。この索引は問い合わせがどのように最適化されるかに応じて文毎に異なります。
+例を以下に挙げます。<codeblock><b>CREATE TABLE T1 (C1 DOUBLE PRECISION);
+
+CREATE FUNCTION SIN (DATA DOUBLE) 
+	RETURNS DOUBLE EXTERNAL NAME 'java.lang.Math.sin'
+	LANGUAGE JAVA PARAMETER STYLE JAVA;
+
+CREATE VIEW V1 (C1) AS SELECT SIN(C1) FROM T1;</b></codeblock></p> 
+<p>文とそれが依存するデータベースの情報を挙げます。
+<codeblock><b>SELECT * FROM V1
+</b></codeblock></p> 
+<p><i>V1</i>というビュー、<i>T1</i>という表、
+外部のスカラー関数の<i>SIN</i></p> </section>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15866.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15866.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15866.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj15866.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 xml:lang="en-us" id="rrefsqlj15866">
+<title>CURRENT_TIMESTAMP関数</title>
+<prolog><metadata>
+<keywords><indexterm>CURRENT_TIMESTAMP function</indexterm>
+</keywords>
+</metadata>
+</prolog><refbody>
+<section>
+<p>CURRENT_TIMESTAMPは現在のタイムスタンプを返します。関数から返される値は一つの文のうちであれば、何度実行されても同じ値を返します。ですから、カーソルから行を拾う間に経過した時間にかかわらず、この関数は同じ値を返します。</p></section>
+<refsyn><title>分布</title>
+<codeblock><b>CURRENT_TIMESTAMP</b></codeblock>
+<p>または</p>
+<codeblock><b>CURRENT TIMESTAMP</b></codeblock>
+</refsyn>
+<example>
+<codeblock><b>VALUES CURRENT_TIMESTAMP
+<ph>-- または</ph>
+
+VALUES CURRENT TIMESTAMP</b></codeblock>
+</example></refbody></reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16095.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16095.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16095.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16095.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="rrefsqlj16095" xml:lang="ja">
+<title>列毎の制約</title>
+<refbody>
+<example> <codeblock><b>{
+    NOT NULL |
+    [ [CONSTRAINT <i><xref href="rrefconstraintname.dita#rrefconstraintname">制約名</xref></i>]
+    {
+        CHECK (<i><xref href="rrefsqlj91438.dita#rrefsqlj91438">検索条件</xref></i>) |
+        {
+            PRIMARY KEY |
+            UNIQUE |
+            <i><xref href="rrefsqlj16357.dita#rrefsqlj16357">REFERENCES 節</xref></i>
+        } 
+    }
+}</b></codeblock></example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16221.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16221.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16221.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj16221.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="rrefsqlj16221" xml:lang="ja">
+<title>SMALLINT データ型</title>
+<prolog><metadata>
+<keywords><indexterm>SMALLINT data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>SMALLINTでは2バイトの記憶領域を提供します。</p></section>
+<refsyn><title>Syntax</title> <codeblock><b>SMALLINT</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title> <p><i>java.lang.Short</i></p> </section>
+<section><title>JDBCのメタデータ型 (java.sql.Types)</title> <p>SMALLINT</p> </section>
+<section><title>最小値</title> <p id="sqlj22378">-32768 (<i>java.lang.Short.MIN_VALUE</i>)</p> </section>
+<section><title>最大値</title> <p id="sqlj97879">32767
+(<i>java.lang.Short.MAX_VALUE</i>)</p> 
+<p>他のデータ型が式にて混在して利用された場合、結果のデータ型は<xref href="rrefsqlj27767.dita#rrefsqlj27767"></xref>に記された規則に則り決まります。</p> 
+<p><xref href="rrefsqlj20204.dita#rrefsqlj20204"></xref>も参照してください。</p> <p>整数の定数は、その値によりINTEGERあるいはBIGINTとなります。</p> </section>
+</refbody>
+</reference>
+

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