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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj24513.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj24513.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj24513.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj24513.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,90 @@
+<?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="rrefsqlj24513" xml:lang="ja">
+<title>CREATE TABLE 文</title>
+<prolog><metadata>
+<keywords><indexterm>CREATE TABLE statement</indexterm><indexterm><indexterm>SQL
+statements</indexterm>CREATE TABLE</indexterm><indexterm>tables<indexterm>creating</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>CREATE TABLE文により表を作成します。表には列および制約があって、情報が沿うべき規則が決められています。表ごとの制約は列の集合ないしは列を指定します。列にはデータ型が決まっていて、列の制約(列ごとの制約)があります。</p>
+<p>表や<xref href="rrefattrib26867.dita#rrefattrib26867">データベースの所有者</xref>は自動的に以下の権限を持ち、また他のユーザにこれらの権限を与える事ができます。<ul>
+<li>INSERT</li>
+<li>SELECT</li>
+<li>REFERENCES</li>
+<li>TRIGGER</li>
+<li>UPDATE</li>
+</ul>これらの権限を表やデータベースの所有者から剥奪することはできません。</p>
+<p>制約についての情報は、<xref href="rrefsqlj13590.dita#rrefsqlj13590"></xref>を参照してください。</p>
+<p>列には既定値を与えることができます。既定値とは値が指定されなかったとき、列に挿入される値です。明示されない場合列の既定値はNULLです。詳細は<xref href="rrefsqlj30540.dita#rrefsqlj30540/sqlj64478"></xref>を参照してください。</p>
+<p><codeph>SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY</codeph>というシステムの手続を呼ぶことで、ページサイズのような記録の属性を設定することができます。</p>
+<p>表を限定する場合、スキーマ名は<i>SYS</i>で始まってはなりません。</p></section>
+<refsyn><title>構文</title>
+    <p>CREATE TABLEには二通りの書き方があります。これは、列の定義と制約を指定しようとするか、問い合わせ式の結果に基づき列を定義するかによります。</p>
+<codeblock><b>CREATE TABLE <i><xref href="rreftablename.dita#rreftablename">表名</xref></i></b>
+    ( {<i><xref href="rrefsqlj30540.dita#rrefsqlj30540">列定義</xref></i> | <i><xref
+href="rrefsqlj42154.dita#rrefsqlj42154">表毎制約</xref></i>}
+    [ , {<i><xref href="rrefsqlj30540.dita#rrefsqlj30540">列定義</xref></i> | <i><xref
+href="rrefsqlj42154.dita#rrefsqlj42154">表毎制約</xref></i>} ] * )
+  |
+      [ ( <i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">列名</xref></i> [ , <i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">列名</xref></i> ] * ) ]
+      <b>AS</b> <i>問い合わせ式</i>
+      <b>WITH NO DATA</b>
+   }
+
+</codeblock> </refsyn>
+<example><title>例</title><codeblock><b>CREATE TABLE HOTELAVAILABILITY
+     (HOTEL_ID INT NOT NULL, BOOKING_DATE DATE NOT NULL,
+	ROOMS_TAKEN INT DEFAULT 0, PRIMARY KEY (HOTEL_ID, BOOKING_DATE));
+<ph>-- 表で主キーを定義することで、2列からなる主キーを定義できます。</ph>
+PRIMARY KEY (hotel_id, booking_date))
+<ph>-- 識別子列の属性を、INTEGERの列に与え、
+-- さらに列に主キー制約を定義します。</ph>
+CREATE TABLE PEOPLE
+	(PERSON_ID INT NOT NULL GENERATED ALWAYS AS IDENTITY
+	CONSTRAINT PEOPLE_PK PRIMARY KEY, PERSON VARCHAR(26));
+<ph>-- 識別子列の属性を、SMALLINTの列に与え、
+-- 初期値を5に増分値を5に設定します。</ph>
+CREATE TABLE GROUPS
+	(GROUP_ID SMALLINT NOT NULL GENERATED ALWAYS AS IDENTITY 
+	(START WITH 5, INCREMENT BY 5), ADDRESS VARCHAR(100), PHONE VARCHAR(15));</b></codeblock><note>さまざまな制約を使った、より多くのCREATE TABLE文の例が<xref href="rrefsqlj13590.dita#rrefsqlj13590"></xref>にあります。</note> </example>
+<section><title>CREATE TABLE ... AS ... </title>
+    <p>もう一つのCREATE TABLE文の書き方は、問い合わせで列の名前と/あるいは列のデータ型を指定します。問い合わせ結果の列は、新しい表の各列を作成するときにモデルとして利用されます。</p>
+<p>新しい表に列名が指定されなかった場合、問い合わせの結果の全列が、新しい表に同じ名前と対応するデータ型で作成されます。
+ひとつあるいはそれ以上の列の名前が新しい表に指定された場合、問い合わせ式の結果には同数の列が無ければなりません。問い合わせ結果の列のデータ型は新しい表の対応する列に引き継がれます。</p>
+<p>WITH NO DATA節は問い合わせ結果行のデータは使われず、列の名称と型だけが利用されることを表します。
+WITH NO DATAは<b>必ず</b>指定してください。今後のリリースにて、DerbyでもWITH DATAを指定して、問い合わせ式の結果を新規作成された表に挿入するように出来るようになるかもしれません。しかし現在のリリースでは、WITH NO DATAの文しか処理されません。</p>
+</section>
+<example><title>例</title>
+    <codeblock><b>
+<ph>-- 既存の表の全列とデータ型を使って新しい表を作成する。</ph>
+CREATE TABLE T3 AS SELECT * FROM T1 WITH NO DATA;
+<ph>-- 列に名前を指定して表を作成する。そのデータ型は既存表の列に沿ったものとする。</ph>
+CREATE TABLE T3 (A,B,C,D,E) AS SELECT * FROM T1 WITH NO DATA;
+<ph>-- 列に名前を指定して表を作成する。そのデータ型は既存表の指定された列のデータ型に沿ったものとする。</ph>
+CREATE TABLE T3 (A,B,C) AS SELECT V,DP,I FROM T1 WITH NO DATA;
+<ph>-- この例では問い合わせ式の結果にある列に名前がないが、そのデータ型は新規作成された表にて対応する列のデータ型となる。</ph>
+CREATE TABLE T3 (X,Y) AS SELECT 2*I,2.0*F FROM T1 WITH NO DATA;
+</b></codeblock>
+</example>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj25228.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj25228.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj25228.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj25228.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,36 @@
+<?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="rrefsqlj25228" xml:lang="ja">
+<title>SESSION_USER関数</title>
+<prolog><metadata>
+<keywords><indexterm>SESSION_USER function</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>SESSION_USERは、現在のユーザの認証識別子あるいは名前を返します。
+現在のユーザがない場合は、<i>APP</i>を返します。</p>
+<p><xref
+href="rrefsqlj42476.dita#rrefsqlj42476">USER</xref>、<xref href="rrefsqlj42324.dita#rrefsqlj42324">CURRENT_USER</xref>、
+SESSION_USER は互いに別名です。</p></section>
+<refsyn><title>構文</title> <codeblock><b>SESSION_USER</b></codeblock> </refsyn>
+<example> <codeblock><b>VALUES SESSION_USER</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj26498.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj26498.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj26498.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj26498.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,75 @@
+<?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="rrefsqlj26498" xml:lang="ja">
+<title>UPDATE文</title>
+<prolog><metadata>
+<keywords><indexterm>UPDATE statement</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<refsyn><title>構文</title> <codeblock><b>{
+    UPDATE <i><xref href="rreftablename.dita#rreftablename">表名</xref></i>
+        SET <i><xref href="rrefcolumnname.dita#rrefcolumnname">列名</xref></i> = <i>値</i>
+        [ , <i><xref href="rrefcolumnname.dita#rrefcolumnname">列名</xref></i> = <i>値</i>} ]*
+        [<i><xref href="rrefsqlj33602.dita#rrefsqlj33602">WHERE節</xref></i>] |
+    UPDATE <i><xref href="rreftablename.dita#rreftablename">表名</xref></i>
+        SET <i><xref href="rrefcolumnname.dita#rrefcolumnname">列名</xref></i> = <i>値</i>
+        [ , <i><xref href="rrefcolumnname.dita#rrefcolumnname">列名</xref></i> = <i>値</i> ]*
+        <i><xref href="rrefsqlj15309.dita#rrefsqlj15309">WHERE CURRENT OF</xref></i>
+}</b></codeblock> 
+<p><varname>値</varname>の定義は以下の通りです。</p>
+<codeblock><b><i>式</i> | DEFAULT</b></codeblock>
+<p>一つ目の書き方は検索による更新といい、WHERE節が真に評価される全行の一つ以上の列を更新します。</p>
+<p>二つ目の書き方は位置による更新といい、更新可能な開いたカーソルの現在行の一つ以上の列を更新します。カーソルを作成するSELECT文の<xref href="rrefsqlj31783.dita#rrefsqlj31783">FOR UPDATE 節</xref>にて列が明示された場合、その列だけが更新可能です。もし列が明示されていないかSELECT文にFOR UPDATE節が無かった場合は、全ての列を更新できます。</p> 
+<p>更新後の値にDEFAULTを指定すると、表にて定義された既定値に列の値が設定されます。</p> </refsyn>
+<example><title>例</title> <codeblock><b>
+<ph>
+-- 'E21'の部署(WORKDEPT)にて管理者以外が一時的に再配属されている。
+-- このことを、EMPLOYEEという表の彼らの仕事(JOB)をNULLに、
+-- 彼らへの支払い(SALARY, BONUS, COMM)を0にしてあらわす。</ph> 
+UPDATE EMPLOYEE
+  SET JOB=NULL, SALARY=0, BONUS=0, COMM=0
+  WHERE WORKDEPT = 'E21' AND JOB &lt;&gt; 'MANAGER'
+
+-- 特定の肩書きを持たない社員を管理者に昇格する。
+UPDATE EMPLOYEE
+	SET JOB = 'MANAGER'
+	WHERE JOB IS NULL;
+<ph>// 全てのプロジェクトの人員配置(PRSTAFF)を1.5増やす。</ph>
+stmt.executeUpdate("UPDATE PROJECT SET PRSTAFF = "
+"PRSTAFF + 1.5" +
+"WHERE CURRENT OF" + ResultSet.getCursorName());
+
+<ph>-- EMPLOYEEという表にて社員番号(EMPNO)が'000290'の社員の仕事(JOB)を、
+-- 既定値であるNULLに更新する。</ph>
+UPDATE EMPLOYEE
+  SET JOB = DEFAULT
+  WHERE EMPNO = '000290'
+</b></codeblock> </example>
+<section><title>文の依存</title> <p>検索による更新の文は、更新しようとしている表や、そのコングロマリット(ヒープや索引などの記録単位)、その制約、WHERE節やSET式に書かれた表に依存します。検索による更新の準備された文の対象表にCREATE INDEXやDROP INDEX文、ALTER TABLE文が実行されると、その文は無効となります。</p> 
+<p>位置による更新の文はカーソルやカーソルが参照する全ての表に依存します。カーソルがまだ開いていなくとも、位置による更新の文をコンパイルすることができます。しかしながらJDBCの<i>close</i>メソッドにより開いたカーソルをなくすと、位置による更新の文は無効となります。</p> 
+<p>
+位置による更新の準備された文の対象表に、CREATE INDEXやDROP INDEX文、ALTER TABLE文が実行されると、その文は無効となります。
+</p> 
+<p>別名を破棄すると、その別名を使っている更新の準備された文は無効になります。</p> 
+<p>更新の対象表にてトリガの破棄や作成が行われると、更新の文は無効になります。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27281.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27281.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27281.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27281.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="rrefsqlj27281" xml:lang="ja">
+<title>FLOATデータ型</title>
+<prolog><metadata>
+<keywords><indexterm>FLOAT data type<indexterm>as alias for REAL or DOUBLE
+PRECISION</indexterm></indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>FLOATは、指定した精度によりREALあるいはDOUBLE PRECISIONの別名となります。</p></section>
+<refsyn><title>構文</title> <codeblock><b>FLOAT [ (<i>精度</i>) ]</b></codeblock> <p>既定の<i>精度</i>は53で、これはDOUBLE PRECISIONと同等です。
+精度が23以下である場合、FLOATはREALと同等になります。精度が24以上である場合、FLOATはDOUBLE PRECISIONと同等となります。もし精度に0を指定すると、エラーとなります。もし負の精度を指定すると、構文エラーとなります。</p> </refsyn>
+<section><title>JDBC のメタデータ型 (java.sql.Types)</title> <p>REAL
+or DOUBLE</p> </section>
+<section><title>制限</title> 
+<p>もし24以上の精度を指定した場合、FLOATにはDOUBLEと同じ制限がかかります。</p> 
+<p>もし23以下の精度を指定した場合、FLOATにはREALと同じ制限がかかります。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27620.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27620.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27620.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27620.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,42 @@
+<?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="rrefsqlj27620" xml:lang="ja">
+<title>TIMESTAMPデータ型</title>
+<prolog><metadata>
+<keywords><indexterm>TIMESTAMP data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>TIMESTAMPでは日付と時刻が結合された値が記録されます。また秒の小数点以下、9桁の値も記録されます。</p></section>
+<refsyn><title>構文</title><codeblock><b>TIMESTAMP</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title><p><i>java.sql.Timestamp</i></p> </section>
+<section><title>JDBC メタデータ型 (java.sql.Types)</title><p>TIMESTAMP</p>
+<p>日付、時刻、タイムスタンプは、一つの式で混在して使えません。</p>
+<p><ph
+conref="../conrefs.dita#prod/productshortname"></ph>ではTIMESTAMPを以下の書式で書けます。<codeblock>yyyy-mm-dd hh:mm:ss[.nnnnnn]
+yyyy-mm-dd-hh.mm.ss[.nnnnnn]</codeblock>
+上記の二つの書式のうち、最初の一つは<i>java.sql.Timestamp</i>の書式です。</p>
+<p>年は常に4文字の数字で表されなければなりません。月や日、時は1文字あるいは2文字の数字とすることができます。分や秒は2文字の数字で表されなければなりません。ナノセカンドが書かれる場合、1文字から6文字の数字で表されます。</p>
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph> はデータベースサーバのロケールに固有の日時書式で書かれた文字列を受け付けます。もし適用するべき書式が曖昧である場合、先に述べた組込みの書式が優先されます。</p> </section>
+<example> <title>例</title><codeblock><b>VALUES '1960-01-01 23:03:20'
+VALUES TIMESTAMP('1962-09-23 03:23:34.234')
+VALUES TIMESTAMP('1960-01-01 23:03:20')</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27767.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27767.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27767.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27767.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,73 @@
+<?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="rrefsqlj27767" xml:lang="ja">
+<title>式にて行われる数値型の項目</title>
+<refbody>
+<section><p>式にて整数型が使われると、<ph conref="../conrefs.dita#prod/productshortname"></ph>は結果の型を少なくともINTEGERにまで昇格します。式にて整数型と非整数型が混在して使われると、<ph conref="../conrefs.dita#prod/productshortname"></ph>は式の結果を式中の最も高い型に昇格します。<xref
+href="#rrefsqlj27767/sqlj39640"></xref>にて、式中のデータ型の昇格を説明します。
+
+  <table frame="all" id="sqlj39640"><title>式にて行われる型の昇格</title>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="1" colnum="1" colwidth="62*"/>
+<colspec colname="2" colnum="2" colwidth="38*"/>
+<thead>
+<row>
+<entry align="left" colname="1" valign="bottom">式における最も大きな型</entry>
+<entry align="left" colname="2" valign="bottom">式の結果型</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="1">DOUBLE PRECISION</entry>
+<entry colname="2">DOUBLE PRECISION</entry>
+</row>
+<row>
+<entry colname="1">REAL</entry>
+<entry colname="2">DOUBLE PRECISION</entry>
+</row>
+<row>
+<entry colname="1">DECIMAL</entry>
+<entry colname="2">DECIMAL</entry>
+</row>
+<row>
+<entry colname="1">BIGINT</entry>
+<entry colname="2">BIGINT</entry>
+</row>
+<row>
+<entry colname="1">INTEGER</entry>
+<entry colname="2">INTEGER</entry>
+</row>
+<row>
+<entry colname="1">SMALLINT</entry>
+<entry colname="2">INTEGER</entry>
+</row>
+</tbody>
+</tgroup>
+</table></p></section>
+<section><p>例:   
+<codeblock><b><ph>-- 倍精度浮動小数点数を返します。</ph>
+VALUES 1 + 1.0e0
+<ph>-- 小数の数を返します。</ph>
+VALUES 1 + 1.0
+<ph>-- 整数を返します。</ph>
+VALUES CAST (1 AS INT) + CAST (1 AS INT)</b></codeblock></p></section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27781.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27781.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27781.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj27781.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="rrefsqlj27781" xml:lang="en-us">
+<title>MAX関数</title>
+<prolog><metadata>
+<keywords><indexterm>MAX aggregate function</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>MAXは行の集合から最大の値を求める集約関数です。(<xref href="rrefsqlj33923.dita#rrefsqlj33923"></xref>を参照してください。)
+MAXは組み込まれたデータ型の式に対してのみ適用することができます。
+(CHAR、VARCHAR、DATE、TIME、CHAR FOR BIT DATA等を含みます。)</p></section>
+<refsyn><title>構文</title> <codeblock><b>MAX ( [ DISTINCT | ALL ] <i>式</i> )</b></codeblock> <p>DISTINCTやALLという限定詞により、重複が除去されたりそのまま残されるか決まりますが、これらの限定詞はMAXの式では意味を持ちません。
+<i><xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i>に置くことのできる、DISTINCTの限定詞は一つだけです。
+例えば、次の問合せは許されていません。
+<codeblock><b>SELECT COUNT (DISTINCT flying_time), MAX (DISTINCT miles)
+FROM Flights</b></codeblock></p> 
+<p><i>式</i>は複数の列への参照や式を含むことができますが、他の集約や副問合せを含むことはできません。
+また組込みのデータ型に評価されなければなりません。
+従って組込みのデータ型と評価されるメソッドを呼ぶことができます。
+(例えば<i>java.lang.Integer</i>や<i>int</i>を返すメソッドはINTEGERと評価されます。)
+もし式がNULLと評価された場合、集約においてその値は無視されます。</p> 
+<p>CHAR、VARCHARについては、値の末尾にある空白文字列は、MAXの振る舞いに影響があります。
+たとえば、'z'と'z 'の両方が列に格納されていた場合、空白は比較にて無視されるので結果は不定ですが、何れか片方の値が返されます。</p> 
+<p>結果のデータ型はMAXが動作する式と同じものとなります。(オーバーフローすることはありません。)</p> </refsyn>
+<example> <codeblock><b><ph>-- FlightAvailabilityという表から最近の日付を探す。</ph>
+SELECT MAX (flight_date) FROM FlightAvailability
+<ph>-- それぞれの空港を出発する最も長距離の便を探す。
+-- なお10時間以上の便のみとする。</ph>
+SELECT MAX(flying_time), orig_airport
+FROM Flights
+GROUP BY orig_airport
+HAVING MAX(flying_time) &gt; 10
+</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj28468.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj28468.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj28468.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj28468.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,63 @@
+<?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="rrefsqlj28468" xml:lang="ja">
+<title>大文字小文字と特殊文字</title>
+<prolog><metadata>
+<keywords><indexterm>Case sensitivity of keywords and identifiers</indexterm>
+<indexterm>Keywords<indexterm>case insensitivity of</indexterm></indexterm>
+<indexterm>Special characters<indexterm>escaping in SQL statements</indexterm></indexterm>
+<indexterm>Escape character<indexterm>for single-quotation mark</indexterm></indexterm>
+<indexterm>Strings<indexterm>delimited by single quotation marks within SQL
+statements</indexterm></indexterm><indexterm>Unicode escapes<indexterm>support
+for in SQL statements</indexterm></indexterm><indexterm>Java identifiers<indexterm>case
+sensitivity of within SQL</indexterm></indexterm><indexterm>* as wildcard
+in SQL SELECT</indexterm><indexterm>% as wildcard in SQL</indexterm><indexterm>_
+as wildcard within SQL</indexterm><indexterm>Wildcards in SQL</indexterm>
+<indexterm>Comment delimiters within SQL</indexterm><indexterm>-- (comment
+delimiters within SQL)</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section><p>JDBCのクラスやメソッドにSQL文の文字列を渡して、<ph conref="../conrefs.dita#prod/productshortname"></ph>にSQLを発行することができます。
+SQL文の文字列に可能な文字セットはUnicodeです。この文字列には、次の規則が適用されます。<ul>
+<li>二重引用符でSQL-92に定義されている特殊識別子をデリミトして、<i>デリミトされた識別子</i>とすることができます。</li>
+<li>一重引用符で文字の列を区切ることができます。</li>
+<li>文字の列にて一重引用符またはアポストロフィーをあらわすには、一重引用符を2つ並べます。(言い方を変えれば、一重引用符は一重引用符のエスケープ文字です。)<p>二重引用符にはエスケープ文字が必要ではありません。二重引用符をあらわすには、単に二重引用符を使ってください。ただし、Javaのプログラムでは、二重引用符はバックスラッシュによるエスケープã�
 �Œå¿…要であることを気に留める必要があります。</p><ph><b>例:</b></ph>
+<codeblock><b><ph>-- 一重引用符はエスケープ文字です-- 一重引用符に対して</ph>
+
+VALUES 'Joe''s umbrella'
+<ph>-- ijでは二重引用符はエスケープされません。</ph>
+VALUES 'He said, "hello!"'
+
+n = stmt.executeUpdate(
+    "UPDATE aTable setStringcol = 'He said, \"hello!\"'");</b></codeblock></li>
+<li>SQLのキーワードは大文字小文字を区別しません。例えば、SELECTというキーワードは、SELECT、Select、select、sELECTのいずれでも書くことができます。</li>
+<li>SQL-92の書き方による識別子は大文字小文字を区別しません。(<i><xref href="crefsqlj34834.dita#crefsqlj34834"></xref></i>を参照してください。)ただしデリミトされた識別子はそうではありません。</li>
+<li>Javaの書き方による識別子は常に大文字小文字を区別します。</li>
+<li>*は、<i><xref href="rrefselectexpression.dita#rrefselectexpression">SelectExpression</xref>.</i>にてワイルドカード文字です。<xref
+href="rrefselectexpression.dita#rrefselectexpression/sqlj38441"></xref>を参照してください。
+この文字は同時に情報演算子でもあります。そのほかの場合この文字は、0回以上の繰り返しを表す、構文のメタ文字です。</li>
+<li>%と_は、LIKE演算子に続く文字の列にて使われると、ワイルドカード文字となります。(これはエスケープされなかった場合です。)詳細は<xref
+href="rrefsqlj23075.dita#rrefsqlj23075"></xref>を参照してください。</li>
+<li>SQL-92の仕様に沿って一行あるいは複数行のコメントを書くことができます。一行のコメントは二つのダッシュ(--)で始まり改行文字で終わります。複数行の改行は前後を囲う書き方で、スラッシュ・スター(/*)で始まり、スター・スラッシュ(*/)で終わります。この書き方では入れ子となる場合があることを留意してください。コメントの開始文字と終了文字の間にある、あら�
 �‚†ã‚‹æ–‡å­—は無視されます。</li>
+</ul></p></section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29026.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29026.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29026.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29026.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,29 @@
+<?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="rrefsqlj29026" xml:lang="ja">
+<title>組み込み関数</title>
+<refbody>
+<section><p>組み込み関数は何らかの処理を行うSQLキーワードや特殊な演算子です。
+組み込み関数には、キーワードか特殊な組込みの演算子が与えられています。
+組み込み関数のキーワードはSQL92識別子であり、大文字小文字を区別しません。
+TIMESTAMPADDやTIMESTAMPDIFFのようなエスケープ関数は、JDBCのエスケープ関数の構文に沿ってのみ利用できます。<xref href="rrefjdbc1020262.dita#rrefjdbc1020262"></xref>を参照してください。
+</p></section>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29840.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29840.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29840.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29840.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,43 @@
+<?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="rrefsqlj29840" xml:lang="ja">
+<title>JOIN 演算</title>
+<prolog><metadata>
+<keywords><indexterm>JOIN operations</indexterm><indexterm>Outer joins</indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>JOIN演算は<xref href="rrefsqlj21583.dita#rrefsqlj21583">FROM 節</xref>の<i><xref href="rreftableexpression.dita#rreftableexpression">TableExpression</xref
+></i>に置くことができ、2表の間の結合を記述します。(WHERE節にて"WHERE t1.col1
+= t2.col2"等と書いて、明示的に等価性の判定式を記述することでも、結合を実現することもできます。)</p></section>
+<refsyn><title>構文</title> <codeblock><b><i>JOIN式</i></b></codeblock> 
+<p>JOIN演算は、以下のいずれかです。<ul>
+<li><xref href="rrefsqlj35034.dita#rrefsqlj35034"></xref>   
+<p>join節により2表の間の結合を明示的に指定します。<xref href="rrefsqlj35034.dita#rrefsqlj35034"></xref>を参照してください。</p></li>
+<li><xref href="rrefsqlj18922.dita#rrefsqlj18922"></xref>   
+<p>join節により2表の間の結合を明示的に指定します。また最初の表にて一致行が二つ目の表にない行も残ります。<xref href="rrefsqlj18922.dita#rrefsqlj18922"></xref>を参照してください。</p></li>
+<li><xref href="rrefsqlj57522.dita#rrefsqlj57522"></xref>   
+<p>join節により2表の間の結合を明示的に指定します。また二つ目の表にて一致行が最初の表にない行も残ります。<xref href="rrefsqlj57522.dita#rrefsqlj57522"></xref>を参照してください。</p></li>
+</ul></p> <p>どの場合でも、結合された表の片方もしくは両方に、outer join節あるいは<xref href="rrefsqlj33602.dita#rrefsqlj33602">WHERE 節</xref>で、追加の絞込条件を置くことができます。</p> </refsyn>
+<section><title>JOIN演算と、問い合わせの最適化</title> 
+<p>結合にどのような最適化が行われるかについては、<cite><ph conref="../conrefs.dita#pub/cittuning"></ph></cite>を参照してください。</p> </section>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29930.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29930.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29930.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj29930.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,39 @@
+<?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="rrefsqlj29930" xml:lang="ja">
+<title>UCASE関数およびUPPER関数</title>
+<prolog><metadata>
+<keywords><indexterm>functions<indexterm>UPPER</indexterm></indexterm><indexterm>functions<indexterm>UCASE</indexterm></indexterm>
+<indexterm>UPPER function</indexterm><indexterm>UCASE function</indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>UCASEおよびUPPERは文字式を引数にとり、全てのアルファベットの文字を大文字にして返します。</p></section>
+<refsyn><title>構文</title><codeblock>UCASEまたはUPPER ( <i>文字式</i> ) </codeblock>
+<p>もし引数の型がCHARであれば、返り値の型はCHARです。それ以外の場合は、返り値の型はVARCHARです。
+<note>UPPERとLOWERは、データベースのロケールによる影響を受けます。ロケールの設定についての、詳細は<i><xref
+href="rrefattrib56769.dita#rrefattrib56769"></xref></i>を参照してください。
+</note></p><p>返り値の長さと最大長は、引数の長さと最大長と同じです。</p> </refsyn>
+<example><title>例</title>次の節により、<p><codeph>aSD1#w</codeph>という文字列を大文字にして返す事ができます。
+<codeblock>VALUES UPPER('aSD1#w')</codeblock>
+返り値は<codeph>ASD1#W</codeph>です。</p> </example>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30118.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30118.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30118.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30118.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,32 @@
+<?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="rrefsqlj30118" xml:lang="ja">
+<title>LONG VARCHAR FOR BIT DATAデータ型</title>
+<prolog><metadata>
+<keywords><indexterm>LONG VARCHAR FOR BIT DATA  type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>LONG VARCHAR FOR BIT DATA型には最大で32,700バイトのビット列を記録できます。この型は列の定義を行うときに最大長を指定する必要がないことを除き、<xref href="rrefsqlj32714.dita#rrefsqlj32714">VARCHAR
+FOR BIT DATA</xref>と同じです。</p></section>
+<refsyn><title>構文</title> <codeblock><b>LONG VARCHAR FOR BIT DATA</b></codeblock> </refsyn>
+<section><title>JDBC メタデータ型(java.sql.Types)</title><p>LONGVARBINARY</p></section>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30435.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30435.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30435.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30435.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,40 @@
+<?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="rrefsqlj30435" xml:lang="ja">
+<title>BIGINT データ型</title>
+<prolog><metadata>
+<keywords><indexterm>BIGINT data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>BIGINTでは整数の記録のため8バイトの領域が割り当てられます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>BIGINT</b></codeblock> </refsyn>
+<section><title>コンパイル時の対応するJavaの型</title> <p><i>java.lang.Long</i></p> </section>
+<section><title>JDBCメタ情報での型(java.sql.Types)</title> <p>BIGINT</p> </section>
+<section><title>最小値</title> <p id="sqlj76321">-9223372036854775808
+(<i>java.lang.Long.MIN_VALUE</i>)</p> </section>
+<section><title>最大値</title> <p id="sqlj25246">9223372036854775807
+(<i>java.lang.Long.MAX_VALUE</i>)</p> 
+<p>他のデータ型と混在させて利用した場合、結果のデータ型は<xref href="rrefsqlj27767.dita#rrefsqlj27767"></xref>に書かれたルールに従います。</p> 
+<p>小さな記憶領域しか持たない場所に、それより大きな記憶領域を占める整数値を代入しようとすると、その整数値が小さな記憶領域では記録できずにエラーとなることがあります。またどのような整数でも、適切にnumericの値とする事ができます。BIGINTであれば、充分な精度を持つDECIMALに記録することができます。</p> </section>
+<example> <codeblock><b>9223372036854775807</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30540.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30540.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30540.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj30540.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,58 @@
+<?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="rrefsqlj30540" xml:lang="en-us">
+<title>列定義</title>
+<refbody>
+<example> <codeblock><b><i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> <i>データ型</i>
+    [ <i><xref href="rrefsqlj16095.dita#rrefsqlj16095">列毎の制約</xref></i> ]*
+    [ [ WITH ] DEFAULT <varname>既定制約式</varname>
+       |<i><xref href="rrefsqlj37836.dita#rrefsqlj37836">発番列仕様</xref></i> ]
+    [ <i><xref href="rrefsqlj16095.dita#rrefsqlj16095">列毎の制約</xref></i> ]*
+</b></codeblock></example>
+<section><p><i>データ型</i>の仕様は<xref href="crefsqlj31068.dita#crefsqlj31068"></xref>にて説明されています。</p>
+<p><i><xref href="rrefsqlj16095.dita#rrefsqlj16095">列毎の制約</xref></i>と<i><xref
+href="rrefsqlj42154.dita#rrefsqlj42154">表毎の制約</xref></i>は、<xref
+href="rrefsqlj13590.dita#rrefsqlj13590"></xref>にて説明されています。</p></section>
+<section id="sqlj64478"><title>列の既定値</title>
+<p>既定値の定義として、いかなる表への参照もない<i>既定制約式</i>があります。
+これに可能であるのは定数、日時の特殊変数、現在のスキーマ、ユーザ、nullです。</p> 
+<codeblock><b><varname>既定制約式</varname>:
+          NULL
+        | CURRENT { SCHEMA | SQLID }
+        | USER | CURRENT_USER | SESSION_USER
+        | DATE
+        | TIME
+        | TIMESTAMP
+        | CURRENT DATE | CURRENT_DATE
+        | CURRENT TIME | CURRENT_TIME
+        | CURRENT TIMESTAMP | CURRENT_TIMESTAMP
+        | <varname>literal</varname>
+</b></codeblock>
+<p>Derbyのリテラル値についての詳細は、<xref href="crefsqlj31068.dita#crefsqlj31068"></xref>を参照してください。</p>
+<p><varname>既定制約式</varname>におく値は、列と互換性のある型でなければなりません。加えて以下の制約があります。</p>
+<ul>
+<li>USER、CURRENT_USERやSESSION_USERを指定した場合、列の長さは少なくとも8である必要があります。</li>
+<li>CURRENT SCHEMAやCURRENT SQLIDを指定した場合、列の長さは少なくとも128である必要があります。</li>
+<li>列が整数型である場合、既定値は整数のリテラルである必要があります。</li>
+<li>列が10進の型である場合、既定値の桁数と精度は列のそれぞれの定義の範囲内である必要があります。</li>
+</ul>
+</section>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31580.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31580.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31580.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31580.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,49 @@
+<?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="rrefsqlj31580" xml:lang="en-us">
+<title>CREATE SCHEMA 文</title>
+<prolog><metadata>
+<keywords><indexterm>CREATE SCHEMA statement</indexterm><indexterm><indexterm>SQL
+statements</indexterm>CREATE SCHEMA</indexterm><indexterm>schemas<indexterm>creating</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>スキーマにより情報を論理的に一つの集合に分類すること、および、一意な名前空間を提供する事ができます。</p></section>
+<refsyn><title>構文</title> <codeblock><b>CREATE SCHEMA { [ <i><xref href="rrefschemaname.dita#rrefschemaname">スキーマ名</xref></i> AUTHORIZATION <i
+>ユーザ名</i> ] | [ <i>スキーマ名</i> ] | 
+[ AUTHORIZATION <i>ユーザ名</i> ] }</b>
+</codeblock> <p>CREATE SCHEMA 文によりスキーマを作成することができます。スキーマ名は128文字を超えてはなりません。スキーマ名はデータベースの内で一意で無ければなりません。</p> 
+<p>CREATE SCHEMA文はデータベースないしシステムにおいて、<codeph>derby.database.sqlAuthorization</codeph>が<codeph>true</codeph>となっている場合、アクセス制御の対象となります。データベース所有者だけが現在のユーザ名とは異なる名前のスキーマを作成することができます。またデータベース所有者だけが現在のユーザ名とは異なる<codeblock>AUTHORIZATION <i>user-name</i></codeblock>を指定できます。
+<codeph>derby.database.sqlAuthorization</codeph>属性についてのより詳細な情報は、<ph conref="../conrefs.dita#pub/cittuning"></ph>を参照してください。</p></refsyn>
+<example><title>CREATE SCHEMAの例</title><p>飛行機に関連した表をおくスキーマを作成して、<codeph>anita</codeph>という認証識別子にスキーマの全ての情報を操作する権限を与えるには次のようにします。<codeblock><b>CREATE SCHEMA FLIGHTS AUTHORIZATION anita</b> </codeblock></p>
+<p>従業員に関連した表をおくスキーマを作成するには次のようにします。<codeblock><b>CREATE SCHEMA EMP</b> </codeblock></p>
+<p><codeph>takumi</codeph>というスキーマ名がそのまま認証識別子であるスキーマを作成するには次のようにします。<codeblock><b>CREATE SCHEMA AUTHORIZATION takumi</b> </codeblock></p>
+<p><codeph>EMP</codeph>と<codeph>FLIGHTS</codeph>の各スキーマに<codeph>availability</codeph>という表を作成するには次のようにします。<codeblock><b>CREATE TABLE FLIGHTS.AVAILABILITY
+	(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 FLT_AVAIL_PK
+	PRIMARY KEY (FLIGHT_ID, SEGMENT_NUMBER, FLIGHT_DATE))</b> </codeblock></p><codeblock><b>CREATE TABLE EMP.AVAILABILITY
+	(HOTEL_ID INT NOT NULL, BOOKING_DATE DATE NOT NULL, ROOMS_TAKEN INT,
+	CONSTRAINT HOTELAVAIL_PK PRIMARY KEY (HOTEL_ID, BOOKING_DATE))
+</b></codeblock> </example>
+</refbody>
+</reference>

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31648.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31648.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31648.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31648.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="rrefsqlj31648" xml:lang="ja">
+<title>DROP SCHEMA 文</title>
+<prolog><metadata>
+<keywords><indexterm>DROP SCHEMA statement</indexterm><indexterm>Schemas<indexterm>dropping</indexterm></indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>DROP SCHEMA 文によりスキーマを破棄できます。
+破棄するスキーマは空で無ければなりません。</p>  <p><i>APP</i>スキーマ(既定のユーザスキーマです。)や<i>SYS</i>スキーマは破棄できません。</p></section>
+<refsyn><title>構文</title> <codeblock><b>DROP SCHEMA <i><xref href="rrefschemaname.dita#rrefschemaname">スキーマ名</xref></i> RESTRICT</b></codeblock> 
+<p>RESTRICTキーワードによりデータベースから破棄しようとするスキーマには、情報があってはならないことを指定します。このRESTRICTキーワードは必須です。</p> </refsyn>
+<example> <codeblock><b><ph>-- SAMP スキーマを破棄します。
+-- SAMPスキーマをデータベースから削除できるのは、
+-- スキーマに情報が定義されていないときのみです。</ph>
+DROP SCHEMA SAMP RESTRICT</b></codeblock> </example>
+</refbody>
+</reference>
+

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

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31783.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31783.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31783.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqlj31783.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="rrefsqlj31783" xml:lang="ja">
+<title>FOR UPDATE 節</title>
+<prolog><metadata>
+<keywords><indexterm>FOR UPDATE clause</indexterm><indexterm>Cursors</indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <indexterm>Cursors</indexterm><indexterm>In-place updates</indexterm> 
+<p><xref href="rrefsqlj41360.dita#rrefsqlj41360">SELECT文</xref>にはFOR UPDATE節を持たせることができます。
+既定でカーソルは読み込みしかできません。FOR UPDATE節により、コンパイル中にSELECT文が更新可能な<i>カーソル</i>の必要条件を満たすかを検証して、カーソルを更新可能とします。
+更新可能であることの詳細については、<xref href="rrefsqlj41360.dita#rrefsqlj41360/sqlj15384">更新可能なカーソルの必要条件</xref>を参照してください。</p> </section>
+<refsyn><title>構文</title> <codeblock><b>FOR
+{
+    READ ONLY | FETCH ONLY |
+    UPDATE [ OF <i><xref href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i> [ , <i><xref
+href="rrefsimplecolumnname.dita#rrefsimplecolumnname">単純列名</xref></i>]* ]
+}</b></codeblock> <p><i>単純列名</i> により、問い合わせ文のFROM節にある表にて、可視な名前を参照します。</p> 
+</refsyn>
+<section>
+<p><note>更新可能なJDBCのResultSetを得るために、必ずしもFOR UPDATE節を使う必要はありません。
+JDBCのResultSetの元となる文が、更新可能なカーソルの必要条件を満たしてさえいれば、JDBC Statementから、並行処理モードが<codeph>ResultSet.CONCUR_UPDATABLE</codeph>のJDBC ResultSetを生成することができます。
+</note></p> 
+<p>索引の列が更新されていても、索引を使った最適化が可能です。索引がどのようにカーソルに影響するかについては、<cite><ph
+conref="../conrefs.dita#pub/cittuning"></ph></cite>を参照してください。</p> 
+</section>
+<example> <codeblock><b>SELECT RECEIVED, SOURCE, SUBJECT, NOTE_TEXT FROM SAMP.IN_TRAY FOR UPDATE
+</b></codeblock> </example>
+</refbody>
+</reference>
+

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