You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@db.apache.org by rh...@apache.org on 2013/03/13 14:54:25 UTC

svn commit: r854277 [37/44] - in /websites/production/db/content/derby: docs/10.4/ja_JP/ docs/10.4/ja_JP/getstart/ docs/10.4/ja_JP/images/ docs/10.4/ja_JP/ref/ manuals/

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj33923.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj33923.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj33923.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,176 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="集約 (集合関数)" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj29026.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj33923" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>集約 (集合関数)</title>
+</head>
+<body id="rrefsqlj33923"><a name="rrefsqlj33923"><!-- --></a>
+
+
+<h1 class="topictitle1">集約 (集合関数)</h1>
+
+<div>
+<div class="section">
+<p>この節は集約(ANSI SQL-92では<em>集合関数</em>、データベースの書籍によっては<em>列関数</em>と呼びます。)について説明します。集約は、行の集合に対して式を評価する方法を提供します。他の組込み関数は単式に対して作用しますが、集約は値の集合に対して作用して一つのスカラー値にまとめられます。組込みの集約により、値の集合に対して、式の最小値、最大値、合計、計�
 �•°ã‚’行い、例えば行を数えるような事ができます。また組込みのものとは別に集約を作って、例えば標準偏差を計算するようなこともできます。</p>
+</div>
+
+<div class="section"><div class="p">
+組込みの集約は、<a href="rrefsqlj33923.html#rrefsqlj33923__sqlj92398">組込みの集約にて可能なデータ型</a>にあるデータ型に作用させることができます。
+  
+<div class="tablenoborder"><a name="rrefsqlj33923__sqlj92398"><!-- --></a><table summary="" cellspacing="0" cellpadding="4" id="rrefsqlj33923__sqlj92398" frame="border" border="1" rules="all"><caption>表 1. 組込みの集約にて可能なデータ型</caption>
+
+<thead align="left">
+<tr>
+<th valign="top" width="33.33333333333333%" id="N1007E">&nbsp;</th>
+
+<th align="left" valign="bottom" width="33.33333333333333%" id="N10084">全データ型</th>
+
+<th align="left" valign="bottom" width="33.33333333333333%" id="N1008D">組込みの数値型</th>
+
+</tr>
+
+</thead>
+
+<tbody>
+<tr>
+<td valign="top" width="33.33333333333333%" headers="N1007E ">COUNT</td>
+
+<td valign="top" width="33.33333333333333%" headers="N10084 ">X</td>
+
+<td valign="top" width="33.33333333333333%" headers="N1008D ">X</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="33.33333333333333%" headers="N1007E ">MIN</td>
+
+<td valign="top" width="33.33333333333333%" headers="N10084 ">&nbsp;</td>
+
+<td valign="top" width="33.33333333333333%" headers="N1008D ">X</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="33.33333333333333%" headers="N1007E ">MAX</td>
+
+<td valign="top" width="33.33333333333333%" headers="N10084 ">&nbsp;</td>
+
+<td valign="top" width="33.33333333333333%" headers="N1008D ">X</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="33.33333333333333%" headers="N1007E ">AVG</td>
+
+<td valign="top" width="33.33333333333333%" headers="N10084 ">&nbsp;</td>
+
+<td valign="top" width="33.33333333333333%" headers="N1008D ">X</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="33.33333333333333%" headers="N1007E ">SUM</td>
+
+<td valign="top" width="33.33333333333333%" headers="N10084 ">&nbsp;</td>
+
+<td valign="top" width="33.33333333333333%" headers="N1008D ">X</td>
+
+</tr>
+
+</tbody>
+
+</table>
+</div>
+</div>
+</div>
+
+<div class="section"><div class="p">
+集約は以下の文脈にのみ置くことができます。<ul>
+<li><em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em>の<em>選択項目</em></li>
+
+<li><a href="rrefsqlj14854.html#rrefsqlj14854">HAVING節</a></li>
+
+<li>集約がその問合せにあるならば、<a href="rrefsqlj13658.html#rrefsqlj13658">ORDER BY 節</a>(別名を使う)つまり、<em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em>の<em>選択項目</em>に集約がある場合に限り、集約への別名を<a href="rrefsqlj13658.html#rrefsqlj13658">ORDER BY 節</a>に置くことができます。</li>
+
+</ul>
+</div>
+</div>
+
+<div class="section"><div class="p"><em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em>の<em>選択項目</em>にある全式は、集約か分類列である必要があります。(<a href="rrefsqlj32654.html#rrefsqlj32654">GROUP BY 節</a>を参照してください。)
+(GROUP BY 節がないにもかかわらず、HAVING節がある場合も同様です。)
+なぜならば、<em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em>の<em>ResultSet</em>は、スカラー(単値)かベクトル(副値)のいずれかでなければならず、その混合は許されていないからです。(集約はスカラーの値と評価され、列への参照はベクトルの値と評価されます。)例えば次の問合せはスカラーとベクトルの値が混ざっているので無効です。
+<pre><strong><span>-- not valid</span>
+SELECT MIN(flying_time), flight_id
+FROM Flights</strong></pre>
+</div>
+</div>
+
+<div class="section"><div class="p">集約にて外部への参照(相関)は無効です。つまり、副問合せが集約を含むならば、その集約が作用する式は、副問合せの外にある問合せの列を参照できません。
+例えば、SUM演算子が外の問合せの列に対して行われているので、次の問合せは有効ではありません。
+<pre><strong>SELECT c1
+FROM t1
+GROUP BY c1
+HAVING c2 &gt;
+    (SELECT t2.x
+    FROM t2
+    WHERE t2.y = SUM(t1.c3)) </strong></pre>
+</div>
+</div>
+
+<div class="section"><p>集約が外の問合せにある場合、その<em>ResultSet</em>のカーソルは更新可能ではありません。</p>
+</div>
+
+<div class="section"><div class="p">この節には以下の集約があります。<ul>
+<li><a href="rrefsqlj32693.html#rrefsqlj32693">AVG関数</a></li>
+
+<li><a href="rrefsqlj38716.html#rrefsqlj38716">COUNT 関数</a></li>
+
+<li><a href="rrefsqlj27781.html#rrefsqlj27781">MAX関数</a></li>
+
+<li><a href="rrefsqlj33520.html#rrefsqlj33520">MIN関数</a></li>
+
+<li><a href="rrefsqlj13083.html#rrefsqlj13083">SUM関数</a></li>
+
+</ul>
+</div>
+</div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="rrefsqlj29026.html" title="">組み込み関数</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj33923.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34148.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34148.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34148.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,81 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="DROP TABLE 文" />
+<meta content="DROP TABLE statement, Tables, dropping" name="DC.subject" />
+<meta content="DROP TABLE statement, Tables, dropping" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj80721.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefdropfunctionstatement.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj59893.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefdropprocedurestatement.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj31648.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqljdropsynonym.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj42082.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj61102.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj34148" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>DROP TABLE 文</title>
+</head>
+<body id="rrefsqlj34148"><a name="rrefsqlj34148"><!-- --></a>
+
+
+<h1 class="topictitle1">DROP TABLE 文</h1>
+
+
+<div>
+<div class="section"> <p>DROP TABLE により表を破棄できます。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre><strong>DROP TABLE <em><a href="rreftablename.html#rreftablename">表名</a></em></strong></pre>
+ </div>
+
+<div class="section" id="rrefsqlj34148__sqlj38361"><a name="rrefsqlj34148__sqlj38361"><!-- --></a><h4 class="sectiontitle">文の依存</h4> 
+<p>表のトリガ、制約(主キー、一意、チェック、破棄する表から参照)や索引は、暗黙裡に削除されます。破棄しようとした表に開いたカーソルがあった場合、DROP TABLEはエラーとなり表は破棄されません。</p>
+ <p>表を破棄すると、その表に依存する文が無効となります。(無効となった文は次回の実行で再コンパイルされます。<a href="crefsqlj22771.html#crefsqlj22771">依存関係</a>を参照してください。)</p>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlj80721.html" title="">DROP文</a></div>
+</div>
+<div class="relref"><strong>関連資料</strong><br />
+<div><a href="rrefdropfunctionstatement.html" title="">DROP FUNCTION 文</a></div>
+<div><a href="rrefsqlj59893.html" title="">DROP INDEX 文</a></div>
+<div><a href="rrefdropprocedurestatement.html" title="">DROP PROCEDURE 文</a></div>
+<div><a href="rrefsqlj31648.html" title="">DROP SCHEMA 文</a></div>
+<div><a href="rrefsqljdropsynonym.html" title="">DROP SYNONYM 文</a></div>
+<div><a href="rrefsqlj42082.html" title="">DROP TRIGGER 文</a></div>
+<div><a href="rrefsqlj61102.html" title="">DROP VIEW 文</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34148.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34177.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34177.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34177.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,67 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="CURRENT_DATE関数" />
+<meta content="CURRENT_DATE function" name="DC.subject" />
+<meta content="CURRENT_DATE function" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj29026.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj34177" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>CURRENT_DATE関数</title>
+</head>
+<body id="rrefsqlj34177"><a name="rrefsqlj34177"><!-- --></a>
+
+
+<h1 class="topictitle1">CURRENT_DATE関数</h1>
+
+
+<div>
+<div class="section"> <p>CURRENT_DATEは現在の日付を返します。なお一つの文で複数呼ばれた時に返される値は同じです。従って時間を置いてカーソルが行を拾うときでも、値は固定されていて同じということです。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> 
+<pre><strong>CURRENT_DATE</strong></pre>
+ <p>あるいは</p>
+ <pre><strong>CURRENT DATE</strong></pre>
+ </div>
+
+<div class="example"> <pre><strong><span>-- 現在より以降の日付の便を探す。</span>
+SELECT * FROM Flightavailability where flight_date &gt; CURRENT_DATE;</strong></pre>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="rrefsqlj29026.html" title="">組み込み関数</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj34177.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35034.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35034.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35034.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,120 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="INNER JOIN 演算" />
+<meta content="INNER JOIN 演算" name="DC.subject" />
+<meta content="INNER JOIN 演算" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj29840.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj35034" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>INNER JOIN 演算</title>
+</head>
+<body id="rrefsqlj35034"><a name="rrefsqlj35034"><!-- --></a>
+
+
+<h1 class="topictitle1">INNER JOIN 演算</h1>
+
+
+<div>
+<div class="section"> <p>INNER JOINとは、明示的な結合句を記述することができる、<a href="rrefsqlj29840.html#rrefsqlj29840">JOIN 演算</a>です。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre><strong><em><a href="rreftableexpression.html#rreftableexpression">表式</a></em> [ INNER ] JOIN <em><a href="rreftableexpression.html#rreftableexpression">表式</a></em> { ON <em>真偽式</em> }</strong></pre>
+ 
+<p>ONに真偽式を記述することで、結合句が記述できます。</p>
+ 
+<div class="p">ON節にある式では、直接の表および、外部の問い合わせ文から、直接のSELECT文までの間にある表が可視です。
+以下の例ではON節は直接の表を参照しています。
+<pre><strong>SELECT *
+FROM SAMP.EMPLOYEE INNER JOIN SAMP.STAFF
+ON EMPLOYEE.SALARY &lt; STAFF.SALARY
+</strong></pre>
+</div>
+ 
+<p>ON節では結合されていない表を参照することができます。また結合している表を参照しなくてもかまいません。(一般的には参照します。)</p>
+ </div>
+
+<div class="example"> <pre><strong><span>-- EMP_ACTとEMPLOYEEという表を結合します。</span>
+-- EMP_ACTという表より全列を選択して、
+-- EMPLOYEEという表より従業員の苗字(LASTNAME)をそれぞれの行に
+-- 加えます。
+SELECT SAMP.EMP_ACT.*, LASTNAME
+     FROM SAMP.EMP_ACT JOIN SAMP.EMPLOYEE
+     ON EMP_ACT.EMPNO = EMPLOYEE.EMPNO
+-- EMPLOYEEとDEPARTMENTという表を結合して、
+-- 1930年より前に生まれた(BIRTDATE)全ての従業員の、
+-- 従業員番号(EMPNO)、従業員の苗字(LASTNAME)、
+-- 部署番号(EMPLOYEEという表のWORKDEPTと、DEPARTMENTという表のDEPTNO)、
+-- 部署名(DEPTNAME)を選択する。
+SELECT EMPNO, LASTNAME, WORKDEPT, DEPTNAME 
+     FROM SAMP.EMPLOYEE JOIN SAMP.DEPARTMENT 
+     ON WORKDEPT = DEPTNO 
+     AND YEAR(BIRTHDATE) &lt; 1930
+
+<span>-- VALUES節から選択する問い合わせ(select文の一例)により値を"生成"する別の例 </span>
+-- この問い合わせにより、一行の情報を持つ"R1"と"R2"という2列の"x"という表を
+-- どのように導出するのか示す。
+SELECT *
+FROM (VALUES (3, 4), (1, 5), (2, 6))
+AS VALUESTABLE1(C1, C2)
+JOIN (VALUES (3, 2), (1, 2),
+(0, 3)) AS VALUESTABLE2(c1, c2)
+ON VALUESTABLE1.c1 = VALUESTABLE2.c1
+-- This results in:
+-- C1         |C2         |C1         |2
+-- -----------------------------------------------
+-- 3          |4          |3          |2
+-- 1          |5          |1          |2
+ 
+<span>  
+-- 全ての部署を、管理者の苗字と従業員番号と共に一覧する。</span>
+
+SELECT DEPTNO, DEPTNAME, EMPNO, LASTNAME
+	FROM DEPARTMENT INNER JOIN EMPLOYEE
+	ON MGRNO = EMPNO
+
+<span>-- 全ての従業員の従業員番号と苗字を、
+-- その管理者の従業員番号と苗字と共に一覧する。</span>
+SELECT E.EMPNO, E.LASTNAME, M.EMPNO, M.LASTNAME	
+	FROM EMPLOYEE E INNER JOIN	
+	DEPARTMENT INNER JOIN EMPLOYEE M 
+        ON MGRNO = M.EMPNO
+        ON E.WORKDEPT = DEPTNO</strong></pre>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="rrefsqlj29840.html" title="">JOIN 演算</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35034.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35981.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35981.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35981.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,87 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="DELETE 文" />
+<meta content="DELETE statement, Read-write VTIs, and DELETES" name="DC.subject" />
+<meta content="DELETE statement, Read-write VTIs, and DELETES" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj39374.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj35981" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>DELETE 文</title>
+</head>
+<body id="rrefsqlj35981"><a name="rrefsqlj35981"><!-- --></a>
+
+
+<h1 class="topictitle1">DELETE 文</h1>
+
+
+<div>
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre><strong>{
+    DELETE FROM 表名
+        [<em><a href="rrefsqlj33602.html#rrefsqlj33602">WHERE 節</a></em>] |
+    DELETE FROM 表名 <a href="rrefsqlj15309.html#rrefsqlj15309">WHERE CURRENT OF</a>
+}</strong></pre>
+</div>
+
+<div class="section">
+<p>一つ目の書き方は、検索による削除と呼ばれ、表名とWHERE 節により絞り込まれた行が削除されます。</p>
+</div>
+
+<div class="section"><p>二つ目の書き方は、位置による削除と呼ばれ、更新可能なカーソルで現在開いている行が削除されます。更新可能なカーソルについては<a href="rrefsqlj41360.html#rrefsqlj41360">SELECT 文</a>を参照してください。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">例</h4> <pre><strong>DELETE FROM SAMP.IN_TRAY
+
+stmt.executeUpdate("DELETE FROM SAMP.IN_TRAY WHERE CURRENT OF " +
+	resultSet.getCursorName());</strong></pre>
+</div>
+
+<div class="section"><h4 class="sectiontitle">文の依存</h4>
+<p>検索による削除では、文が更新する表やそのコングロマリット(ヒープや索引のような記録の単位)に、文が依存します。準備された検索による削除文が対象とする表のCREATEやDROP INDEX文は、その準備された検索による削除文を無効とします。</p>
+</div>
+
+<div class="section">
+<p>位置による削除では、文がカーソルやカーソルが参照する表に依存します。たとえまだカーソルが開いてなくても、位置による削除の文はコンパイル可能です。それでも、JDBCの<em>close</em>メソッドにより開いたカーソルが取り除かれると、位置による削除の文は無効になります。</p>
+</div>
+
+<div class="section">
+<p>
+準備された位置による削除の文が対象とする表のCREATEやDROP INDEX文は、その準備された位置による削除の文を無効とします。</p>
+</div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlj39374.html" title="">文</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj35981.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj36146.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj36146.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj36146.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,122 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="小数を計算するときの目盛り" />
+<meta content="Precision, of decimal arithmetic expressions, Scale" name="DC.subject" />
+<meta content="Precision, of decimal arithmetic expressions, Scale" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj41507.html" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj28138.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj27767.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj20204.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj36146" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>小数を計算するときの目盛り</title>
+</head>
+<body id="rrefsqlj36146"><a name="rrefsqlj36146"><!-- --></a>
+
+
+<h1 class="topictitle1">小数を計算するときの目盛り</h1>
+
+
+<div>
+<div class="section"><p>SQL文には、異なる<em>精度</em>(小数点をはさんだ両方にある桁の数です)や<em>目盛り</em>(小数部の桁の数です)の小数型を使った計算式を書くことができます。
+計算結果にて小数型の精度や目盛りがどうなるかはオペランドに依存します。</p>
+</div>
+
+<div class="section"><div class="p">小数のオペランドが二つ与えられたとして、:
+  <ul>
+<li><em>lp</em>は左辺のオペランドの精度とします。</li>
+
+<li><em>rp</em>は右辺のオペランドの精度とします。</li>
+
+<li><em>ls</em>は左辺のオペランドの目盛りとします。</li>
+
+<li><em>rs</em>は右辺のオペランドの目盛りとします。</li>
+
+</ul>
+</div>
+</div>
+
+<div class="section"><div class="p">結果のデータ型の目盛りは、それぞれの計算方法について、次式のとおりです。<ul>
+<li><em>掛け算</em>   <p>ls + rs</p>
+</li>
+
+<li><em>割り算</em>   <p>31 - lp + ls - rs</p>
+</li>
+
+<li><em>AVG()</em>   <p>max(max(ls, rs), 4)</p>
+</li>
+
+<li><em>その他全部</em>   <p>max(ls, rs)</p>
+</li>
+
+</ul>
+</div>
+</div>
+
+<div class="section"><div class="p">例えば、次式の結果ではデータ型の目盛りは27です。  
+<pre>11.0/1111.33
+<strong>// 31 - 3 + 1 - 2 = 27 </strong></pre>
+</div>
+</div>
+
+<div class="section"><div class="p">結果のデータ型の精度は、それぞれの計算方法について、次式のとおりです。<ul>
+<li><em>掛け算</em>   <p>lp + rp</p>
+</li>
+
+<li><em>足し算</em>   <p>2 * (p - s) +  s</p>
+</li>
+
+<li><em>割り算</em>   <p>lp - ls + rp + max(ls + rp - rs + 1, 4)</p>
+</li>
+
+<li><em>その他全部</em>   <p>max(lp - ls, rp - rs) + 1 + max(ls, rs)</p>
+</li>
+
+</ul>
+</div>
+</div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlj41507.html" title="">数値型</a></div>
+</div>
+<div class="relconcepts"><strong>関連概念</strong><br />
+<div><a href="crefsqlj28138.html" title="">数値型の概要</a></div>
+</div>
+<div class="relref"><strong>関連資料</strong><br />
+<div><a href="rrefsqlj27767.html" title="">式にて行われる数値型の項目</a></div>
+<div><a href="rrefsqlj20204.html" title="">数値を異なる数値型の列に記録する</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj36146.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj37836.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj37836.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj37836.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,185 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="en-us" xml:lang="en-us">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="発番列仕様" />
+<meta content="Identity column attributes, generated-column-spec" name="DC.subject" />
+<meta content="Identity column attributes, generated-column-spec" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj24513.html" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj30540.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj37836" name="DC.Identifier" />
+<meta content="en-us" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>発番列仕様</title>
+</head>
+<body id="rrefsqlj37836"><a name="rrefsqlj37836"><!-- --></a>
+
+
+<h1 class="topictitle1">発番列仕様</h1>
+
+
+<div>
+<div class="example"> <pre><strong>[ GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY 
+[ ( START WITH 定整数
+[ ,INCREMENT BY 定整数] ) ]  ]  ]
+</strong></pre>
+</div>
+
+<div class="section" id="rrefsqlj37836__sqlj69411"><a name="rrefsqlj37836__sqlj69411"><!-- --></a><h4 class="sectiontitle">識別子列属性</h4>
+<p>SMALLINT、INT、BIGINT型の列に識別子属性があると、<span>Derby</span>は自動的に列の値に、増加する整数値をあてます。挿入文で列の値が指定されない場合、識別子列属性は既定値と同様に振る舞い、<span>Derby</span>は列に自動的に値を与えます。
+しかしながら、その値は定数ではありません。<span>Derby</span>は行に挿入する時、自動的に既定値へ加算してゆきます。</p>
+<div class="p">IDENTITYというキーワードは列のデータ型が次のいずれの整数である場合にのみ指定可能です。<ul>
+<li>SMALLINT</li>
+
+<li>INT</li>
+
+<li>BIGINT</li>
+
+</ul>
+</div>
+<div class="p"><span>Derby</span>には二種類の識別子列があります。ひとつはGENERATED ALWAYSで、もう一つはGENERATED BY DEFAULTです。<dl>
+
+<dt class="dlterm">GENERATED ALWAYS</dt>
+
+<dd>GENERATED ALWAYSの識別子列は列の既定値を、挿入が行われるときごとに増加させて、その増加された値を列に記録します。他の既定値とは違い、GENERATED ALWAYSの識別子列に値を直接挿入したり、その値を変更したりすることはできません。その代わりに識別子列の値にはDEFAULTというキーワードを与えるか、識別子列を挿入する列の一覧からはずすかします。
+例を挙げます。<pre>create table greetings
+	(i int generated always as identity, ch char(50));
+insert into greetings values (DEFAULT, 'hello');
+insert into greetings(ch) values ('bonjour');</pre>
+GENERATED ALWAYSな識別子列に自動的に発番された値は一意です。また識別子列を作成しても、列に索引は作られません。</dd>
+
+
+<dt class="dlterm">GENERATED BY DEFAULT</dt>
+
+<dd><p>GENERATED BY DEFAULTの識別子列は、挿入時に列へ明示的な値が与えられなかった場合のみ、既定値を増加させて使います。GENERATED ALWAYSの列とは違い、挿入文にて明示的な値を既定値の変わりに与えることができます。</p>
+<div class="p">生成された既定値を使うためには、挿入時にDEFAULTというキーワードを使うか、識別子列を挿入列リストから外します。挿入する値を指定するには、その値を挿入文に含めます。例を挙げます。<pre>create table greetings
+	(i int generated by default as identity, ch char(50));
+<strong>-- "1"を指定する:</strong>
+insert into greetings values (1, 'hi');
+<strong>-- 生成された既定値を使う</strong>
+insert into greetings values (DEFAULT, 'salut');
+<strong>-- 生成された既定値を使う</strong>
+insert into greetings(ch) values ('bonjour'); </pre>
+
+GENERATED ALWAYS列とは異なり、GENERATED BY DEFAULTの列では一意性は保障されません。したがって、上記の例では<samp class="codeph">hi</samp>および<samp class="codeph">salut</samp>の行はどちらも同じ"1"という識別値を取ります。なぜなら、生成された列の値は"1"から始まり、ユーザが指定した値も"1"だったからです。重複を避けるために、情報のロードやインポートを行うときにテーブルを作成して、システムが自動生成するã�
 �めのSTART WITHの値を与えてください。このような状況をチェックして、起きないようにするために、主キーや一意性制約をGENERATED BY DEFAULTの識別子列に使うことができます。</div>
+</dd>
+
+</dl>
+</div>
+<p>既定では識別子列の初期値は1です。さらに増分値は1です。
+列を定義するとき、初期値と増分値の両方に、START WITHとINCREMENT BYというキーワードを使って、明示的な値を指定することができます。さらに増分値に負の値を与えると、挿入毎に<span>Derby</span>は値を<em>減じて</em>ゆきます。
+もし値が正の値であれば、挿入毎に<span>Derby</span>は値を増加させてゆきます。 値に0を与えると例外が発生します。</p>
+
+<div class="p">識別子列にて可能な最大値と最小値は、列のデータ型によります。データ型で採ることのできる範囲外の値を挿入しようとすると、例外が発生します。
+<div class="tablenoborder"><table summary="" cellspacing="0" cellpadding="4" frame="border" border="1" rules="all"><caption>Table 1. 発番列仕様にて、列でとることが可能な最大値と最小値</caption>
+
+<thead align="left">
+<tr>
+<th align="left" valign="bottom" width="16%" id="N10137">データ型</th>
+
+<th align="left" valign="bottom" width="42%" id="N10140">最大値</th>
+
+<th align="left" valign="bottom" width="42%" id="N10149">最小値</th>
+
+</tr>
+
+</thead>
+
+<tbody>
+<tr>
+<td valign="top" width="16%" headers="N10137 ">SMALLINT</td>
+
+<td valign="top" width="42%" headers="N10140 ">32767 (<em>java.lang.Short.MAX_VALUE</em>)</td>
+
+<td valign="top" width="42%" headers="N10149 ">-32768 (<em>java.lang.Short.MIN_VALUE</em>)</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="16%" headers="N10137 ">INT</td>
+
+<td valign="top" width="42%" headers="N10140 ">2147483647 (<em>java.lang.Integer.MAX_VALUE</em>)</td>
+
+<td valign="top" width="42%" headers="N10149 ">-2147483648 (<em>java.lang.Integer.MIN_VALUE</em>)</td>
+
+</tr>
+
+<tr>
+<td valign="top" width="16%" headers="N10137 ">BIGINT</td>
+
+<td valign="top" width="42%" headers="N10140 ">9223372036854775807 (<em>java.lang.Long.MAX_VALUE</em>)</td>
+
+<td valign="top" width="42%" headers="N10149 ">-9223372036854775808 (<em>java.lang.Long.MIN_VALUE</em>)</td>
+
+</tr>
+
+</tbody>
+
+</table>
+</div>
+</div>
+<p>識別子列にて自動的に生成された値は一意です。主キー制約や一意性制約を列に定義することで、一意性を保障する事ができます。識別子列を定義しても、列の索引は<em>作られません
+。</em></p>
+
+<p><samp class="codeph">IDENTITY_VAL_LOCAL</samp>関数は、非決定性の関数で最後に識別子列に与えられた値を返します。詳細については、<a href="rrefidentityvallocal.html#rrefidentityvallocal">IDENTITY_VAL_LOCAL関数</a>を参照してください。</p>
+
+<div class="note"><span class="notetitle">Note: </span>スキーマ・表・列の名前はデリミトされた識別子を使わない限り、常にシステム表にて大文字で記録されます。</div>
+
+<p><span>Derby</span>は列に対して最後に発番された値をキャッシュに残しています。また、ディスク上では、<em>SYS.SYSCOLUMNS</em>というシステム表の<em>AUTOINCREMENTVALUE</em>という列に、次の値を記録しています。 トランザクションをロールバックしてもこの値は取り消されません。したがって、トランザクションがロールバックされると、識別子列に挿入される自動生成値には、空きが発生することとã�
 �ります。
+<span>Derby</span> はこのように動作することで、<em>SYS.SYSCOLUMNS</em>の行をトランザクションの期間中ロックし続けることを回避して、高い平行性を保っています。</p>
+<p>トリガされたSQL文にて識別子列に値が挿入された場合、そのSQL文で挿入された値は、トリガのコード内でのみ<em>ConnectionInfo</em>から取得可能です。 
+また、トリガのコードはトリガをひいた文が挿入した値を取得することもできます。
+しかし、トリガをひいた文は、トリガされたSQL文が識別子列に挿入した値を知ることができません。
+さらにトリガは入れ子(再帰)の場合も同じようなこととなります。
+SQL文によりT1というトリガが発火され、次にT1の実行したSQLによりT2というトリガが発火されたとします。ここでT1もT2も表に識別子列に値がある行を挿入した場合、T1はT2が挿入した値を見ることはできませんが、T2はT1が挿入した値を見ることができます。それぞれの入れ子になったトリガは自分自身と、再帰的なトリガを開始したSQLを含めて、入れ子のレベルが前の処理にて生æ
 ˆã•ã‚ŒãŸå€¤ã‚’見ることができます。
+なおトリガの再帰は16まで可能です。</p>
+ </div>
+
+<div class="section"><h4 class="sectiontitle">例</h4><pre>create table greetings
+  (i int generated by default as identity (START WITH 2, INCREMENT BY 1),
+  ch char(50));
+-- 1を指定する。
+insert into greetings values (1, 'hi');
+-- 生成された既定値を使う
+insert into greetings values (DEFAULT, 'salut');
+-- 生成された既定値を使う
+insert into greetings(ch) values ('bonjour'); </pre>
+</div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>Parent topic:</strong> <a href="rrefsqlj24513.html" title="">CREATE TABLE 文</a></div>
+</div>
+<div class="relref"><strong>Related reference</strong><br />
+<div><a href="rrefsqlj30540.html" title="">列定義</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj37836.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38716.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38716.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38716.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,80 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="COUNT 関数" />
+<meta content="COUNT aggregate function, DISTINCT, qualifier in COUNT aggregate function" name="DC.subject" />
+<meta content="COUNT aggregate function, DISTINCT, qualifier in COUNT aggregate function" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="rrefsqlj29026.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj38716" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>COUNT 関数</title>
+</head>
+<body id="rrefsqlj38716"><a name="rrefsqlj38716"><!-- --></a>
+
+
+<h1 class="topictitle1">COUNT 関数</h1>
+
+
+<div>
+<div class="section"> <p>COUNTは式の行数を数える集約関数です。(<a href="rrefsqlj33923.html#rrefsqlj33923">集約 (集合関数)</a>を参照してください。)
+COUNTはどのような型の式でも利用できます。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4><pre><strong>COUNT ( [ DISTINCT | ALL ] <em>式</em> ) </strong></pre>
+<p>DISTINCTという限定詞により重複を取り除くことができます。ALLという限定詞により重複をそのままにすることができます。もしDISTINCTもALLも指定されなければ、ALLが与えられたものとします。例えば、列に1、1、1、1および2という値があった場合、COUNT(col)はCOUNT(DISTINCT col)より大きな数を返します。</p>
+
+<p>一つの<em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em>には、唯一つのDISTINCT集約式をとることができます。例えば次のように問合せる事はできません。</p>
+<pre><strong><span>-- 問い合わせできない</span>
+SELECT COUNT (DISTINCT flying_time), SUM (DISTINCT miles)
+FROM Flights</strong></pre>
+
+<p><em>式</em>には複数の列への参照や式を置く事ができますが、他の集約や副問合せを置くことはできません。
+もし<em>式</em>がNULLと評価される場合、その評価値について集約は行われません。</p>
+
+<p>COUNTによる結果のデータ型は、<a href="rrefsqlj10696.html#rrefsqlj10696">INTEGER</a>です。</p>
+ </div>
+
+<div class="example"> <pre><strong><span>-- それぞれの地域の国の数を数え、
+-- 二国以上ある地域を表示する。</span>
+SELECT COUNT (country), region
+FROM Countries
+GROUP BY region
+HAVING COUNT (country) &gt; 1</strong></pre>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="rrefsqlj29026.html" title="">組み込み関数</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38716.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38831.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38831.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38831.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,75 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICSシステム手続き" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlbuiltinsystemprocedures.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj38831" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICSシステム手続き</title>
+</head>
+<body id="rrefsqlj38831"><a name="rrefsqlj38831"><!-- --></a>
+
+
+<h1 class="topictitle1">SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICSシステム手続き</h1>
+
+<div>
+<div class="section"><p><samp class="codeph">SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS()</samp>システム手続きにより、接続に対する実行時統計のonとoffを切り替えられます。
+既定では実行時統計は動作していません。<samp class="codeph">runtimestatistics</samp>属性をonにすると、属性がoffになるまでの間、<span>Derby</span>は、接続で実行されたcommit以外の各文の実行計画の情報をたもち続けます。
+<samp class="codeph">runtimestatistics</samp>属性をoffにするには、引数を0で手続きを呼びます。
+<samp class="codeph">runtimestatistics</samp>属性をonにするには、引数を0ではない任意の数で手続きを呼びます。</p>
+</div>
+
+<div class="section">
+<p>行を返さない文に対して実行計画の情報が作られるのは、クライアントプログラムに処理を返す前の内部処理が終わった時です。行を返す文に対しては、初めて呼んだ<samp class="codeph">next()</samp>が0行返した時、あるいは<samp class="codeph">close()</samp>が呼び出された時の、何れか早いほうです。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre>SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(IN SMALLINT ENABLE)</pre>
+</div>
+
+<div class="section"><h4 class="sectiontitle">例</h4> 
+<pre>
+-- 接続します。
+-- 接続のRUNTIMESTATISTICをonにします。
+<strong>CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(1);</strong>
+-- 複雑な問合せを行います。
+-- 結果セットをなめます。
+-- 実行時統計の情報にアクセスします。
+<strong>CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0);</strong></pre>
+</div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlbuiltinsystemprocedures.html" title="">組み込みシステム手続き</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj38831.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40506.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40506.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40506.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,116 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="LOCK TABLE 文" />
+<meta content="LOCK TABLE statement, LOCK TABLE, SQL statements, tables, locking, lock escalation, by user" name="DC.subject" />
+<meta content="LOCK TABLE statement, LOCK TABLE, SQL statements, tables, locking, lock escalation, by user" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj39374.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj40506" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>LOCK TABLE 文</title>
+</head>
+<body id="rrefsqlj40506"><a name="rrefsqlj40506"><!-- --></a>
+
+
+<h1 class="topictitle1">LOCK TABLE 文</h1>
+
+
+<div>
+<div class="section"> 
+<p>LOCK TABLE文により明示的に、表に共有あるいは排他のロックをかけることができます。
+表へのロックは現在のトランザクションが終了するまでの間、続きます。</p>
+
+<p>表をロックできるのは、<a href="rrefattrib26867.html#rrefattrib26867">データベースの所有者</a>と表の所有者です。</p>
+
+<div class="p">明示的な表へのロックは次の場合に便利です。<ul>
+<li>表の複数行へのロックによるオーバーヘッドを避ける時。(言い換えればユーザ自ら、ロックエスカレーションを行う時。)</li>
+
+<li>デッドロックを避ける時</li>
+
+</ul>
+</div>
+
+<p>この文でシステム表にロックをかけることはできません。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre><strong>LOCK TABLE <em><a href="rreftablename.html#rreftablename">表名</a></em> IN { SHARE | EXCLUSIVE } MODE</strong></pre>
+
+<p>いずれのモードであっても、トランザクションは表をロックした後、それ以上の行ごとのロックを得ることはできません。例えば、情報を読むためにトランザクションが<samp class="codeph">Flights</samp>という表の全体を共有モードでロックした後、ある文にて行を更新するために特定の行への排他ロックを必要としたとします。しかしながら、既に<samp class="codeph">Flights</samp>表へのロックがあるたã‚
 ã€æŽ’他ロックも表毎となる必要があります。</p>
+
+<p>他の接続が表に対して既にロックをかけているため、その表へのロックが取得できない場合、デッドロックのタイムアウト時間が経過した後、文への例外が発生します。(<em>SQLState</em> X0X02)</p>
+ </div>
+
+<div class="example"><h4 class="sectiontitle">例</h4>
+<div class="p">行毎のロックが多量に発生することを避けるため、共有モードで<samp class="codeph">Flights</samp>という表全体へのロックを行うには以下の文を使います。
+<pre>LOCK TABLE Flights IN SHARE MODE;
+SELECT *
+FROM Flights
+WHERE orig_airport &gt; 'OOO';
+</pre>
+</div>
+
+<div class="p">複数のUPDATE文を発行するトランザクションが一つあるとします。
+個々の文はわずかな行毎のロックしか必要としないので、トランザクションはロックを表毎に変更しません。しかしUPDATE文の数が多いので、取得と開放が行われるロックの延べ数は多くなり、デッドロックになりかねません。
+このようなトランザクションでは、最初に排他モードで表をロックします。
+例を以下に示します。<pre>LOCK TABLE FlightAvailability IN EXCLUSIVE MODE;
+UPDATE FlightAvailability
+SET economy_seats_taken = (economy_seats_taken + 2)
+WHERE flight_id = 'AA1265' AND flight_date = DATE('2004-03-31');
+
+UPDATE FlightAvailability
+SET economy_seats_taken = (economy_seats_taken + 2)
+WHERE flight_id = 'AA1265' AND flight_date = DATE('2004-04-11'); 
+
+UPDATE FlightAvailability
+SET economy_seats_taken = (economy_seats_taken + 2)
+WHERE flight_id = 'AA1265' AND flight_date = DATE('2004-04-12');
+
+UPDATE FlightAvailability
+SET economy_seats_taken = (economy_seats_taken + 2)
+WHERE flight_id = 'AA1265' AND flight_date = DATE('2004-04-15');
+</pre>
+</div>
+
+<div class="p">トランザクションが表を更新する前に、その表をみる必要がある場合、デッドロックを避けるため、表に排他ロックをかけます。
+例:<pre>LOCK TABLE Maps IN EXCLUSIVE MODE;
+SELECT MAX(map_id) + 1 FROM Maps;
+-- INSERT INTO Maps . . .</pre>
+</div>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlj39374.html" title="">文</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40506.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40774.html
==============================================================================
--- websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40774.html (added)
+++ websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40774.html Wed Mar 13 13:54:17 2013
@@ -0,0 +1,117 @@
+<!--
+  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.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="ja" xml:lang="ja">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="(C) Copyright 2005" />
+<meta name="DC.rights.owner" content="(C) Copyright 2005" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="INSERT 文" />
+<meta content="INSERT statement" name="DC.subject" />
+<meta content="INSERT statement" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="crefsqlj39374.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rrefsqlj40774" name="DC.Identifier" />
+<meta content="ja" name="DC.Language" />
+<link href="/export/home/tmp/derby/docs-10.4/out/ja_JP/reftemp/commonltr.css" type="text/css" rel="stylesheet" />
+<title>INSERT 文</title>
+</head>
+<body id="rrefsqlj40774"><a name="rrefsqlj40774"><!-- --></a>
+
+
+<h1 class="topictitle1">INSERT 文</h1>
+
+
+<div>
+<div class="section"> <p>
+INSERT文により一つ以上の行を作成して、指定した名前の表に格納できます。
+INSERT文で指定された値の数は、指定された列あるいは暗示された列の数と同じでなければなりません。</p>
+</div>
+
+<div class="section"><h4 class="sectiontitle">構文</h4> <pre><strong>INSERT INTO 表名
+    [ (<em><a href="rrefsimplecolumnname.html#rrefsimplecolumnname">単純列名</a></em> [ , <em><a href="rrefsimplecolumnname.html#rrefsimplecolumnname">単純列名</a></em>]* ) ]
+	  問合せ</strong></pre>
+ <div class="p"><em>問合せには</em>以下のいずれかをとることができます。
+<ul>
+<li><em><a href="rrefselectexpression.html#rrefselectexpression">選択式</a></em></li>
+
+<li>VALUES一覧</li>
+
+<li>複数行VALUES式<p>単一行あるいは複数行の一覧には、DEFAULTというキーワードを含めることができます。列にDEFAULTを指定すると、その列には既定値が挿入されます。列に既定値を挿入する場合、列の一覧にてその列を省略して、表のほかの列に値を挿入することもできます。詳細については<a href="rrefsqlj11277.html#rrefsqlj11277">VALUES式</a>を参照してください。</p>
+</li>
+
+<li>UNION式</li>
+
+</ul>
+</div>
+ <p>問合せの詳細については、<a href="rrefsqlj21571.html#rrefsqlj21571">問合せ</a>を参照してください。</p>
+ </div>
+
+<div class="example"> <pre><strong>INSERT INTO COUNTRIES
+      VALUES ('Taiwan', 'TW', 'Asia')
+
+-- DEPARTMENTという表に新しい部署を挿入します。
+-- ただし、新しい部署に新しい管理者は割り当てません。
+INSERT INTO DEPARTMENT (DEPTNO, DEPTNAME, ADMRDEPT)
+	VALUES ('E31', 'ARCHITECTURE', 'E01')
+<span>-- 2つの新しい部署を一つの文で前と同じようにDEPARTMENTという表に挿入します。
+-- ただし、新しい部署に新しい管理者は割り当てません。</span>
+INSERT INTO DEPARTMENT (DEPTNO, DEPTNAME, ADMRDEPT)
+	VALUES ('B11', 'PURCHASING', 'B01'),
+	('E41', 'DATABASE ADMINISTRATION', 'E01')
+<span>--  EMP_ACTと同じ列を持つ、MA_EMP_ACTという
+-- 一時表を作ります。
+-- MA_EMP_ACTにEMP_ACTという表から、
+-- プロジェクト番号(PROJNO)が'MA'という文字で始まる行をロードします。</span>
+CREATE TABLE MA_EMP_ACT 
+    (
+	EMPNO CHAR(6)  NOT NULL, 
+	PROJNO CHAR(6)  NOT NULL, 
+	ACTNO SMALLINT  NOT NULL, 
+	EMPTIME DEC(5,2), 
+	EMSTDATE DATE, 
+	EMENDATE  DATE
+    );
+
+INSERT INTO MA_EMP_ACT
+	SELECT * FROM EMP_ACT
+	WHERE SUBSTR(PROJNO, 1, 2) = 'MA';
+<span>-- LOCATIONという列にDEFAULTの値を挿入します。</span>
+INSERT INTO DEPARTMENT
+      VALUES ('E31', 'ARCHITECTURE', '00390', 'E01', DEFAULT)
+</strong></pre>
+ </div>
+
+<div class="section"><h4 class="sectiontitle">文の依存</h4> 
+<p>INSERT 文は挿入先の表や、その表の全てのコングロマリット(ヒープや索引などの記録の単位です。)や、文中のその他の表に依存します。準備されたINSERT文の対象表にて、索引や制約を作成したり破棄したりすると、その準備されたINSERT文は無効となります。</p>
+ </div>
+
+</div>
+
+<div>
+<div class="familylinks">
+<div class="parentlink"><strong>親トピック:</strong> <a href="crefsqlj39374.html" title="">文</a></div>
+</div>
+</div>
+
+</body>
+</html>

Propchange: websites/production/db/content/derby/docs/10.4/ja_JP/ref/rrefsqlj40774.html
------------------------------------------------------------------------------
    svn:eol-style = native