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 fu...@apache.org on 2006/03/24 08:10:11 UTC

svn commit: r388422 [10/16] - in /db/derby/docs/trunk/src/pt_BR: ./ ref/

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsql9241891.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsql9241891.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsql9241891.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsql9241891.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,1210 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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="rrefsql9241891" xml:lang="pt-br">
+<title>Suporte do Derby às funcionalidades do SQL-92</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>SQL-92<indexterm>funcionalidades suportada pelo Derby</indexterm>
+<indexterm>funcionalidades não suportada pelo Derby</indexterm></indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>Existem quatro níveis de suporte ao SQL-92:
+<ul>
+<li>SQL92E   <p>Entrada (<i>entry</i>)</p></li>
+<li>SQL92T   <p>Transicional (<i>transitional</i>), um nível definido pelo NIST
+em uma publicação chamada FIPS 127-2</p></li>
+<li>SQL92I   <p>Intermediário (<i>intermediate</i>)</p></li>
+<li>SQL92F   <p>Completo (<i>full</i>)</p></li>
+</ul>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Tipos básicos</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">SMALLINT</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">INTEGER</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">DECIMAL(p,s)</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">NUMERIC(p,s)</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">REAL</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">FLOAT(p)</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">DOUBLE PRECISION</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">CHAR(n)</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Operações matemáticas básicas</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">+, *, -, /, + unário, - unário</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Comparações básicas</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">&lt;, &gt;, &lt;= ,&gt;=, &lt;&gt;, =</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Predicados básicos</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">BETWEEN, LIKE, NULL</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Predicados quantificados</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">IN, ALL/SOME, EXISTS</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Definição do esquema</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">tabelas</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">visões</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">privilégios</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Atributos das colunas</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">valor padrão</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">nulo</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Restrições (não-postergáveis)</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">NOT NULL</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim (não armazenada em SYSCONSTRAINTS)</entry>
+</row>
+<row>
+<entry colname="col1">UNIQUE/PRIMARY KEY</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">FOREIGN KEY</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">CHECK</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Visão com WITH CHECK OPTION</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">não, uma vez que as visões não são atualizáveis</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Cursores</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">DECLARE, OPEN, FETCH, CLOSE</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">realizadas através do JDBC</entry>
+</row>
+<row>
+<entry colname="col1">UPDATE, DELETE CURRENT</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: SQL dinâmico 1</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">ALLOCATE / DEALLOCATE / GET / SET DESCRIPTOR</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">realizadas através do JDBC</entry>
+</row>
+<row>
+<entry colname="col1">PREPARE / EXECUTE / EXECUTE IMMEDIATE</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">realizadas através do JDBC</entry>
+</row>
+<row>
+<entry colname="col1">Cursor dinâmico DECLARE, OPEN, FETCH, CLOSE, UPDATE, DELETE</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">realizadas através do JDBC</entry>
+</row>
+<row>
+<entry colname="col1">Saída DESCRIBE</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">realizadas através do JDBC</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Esquema de informações básico</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">TABLES</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3"><i>SYS.SYSTABLES, SYS.SYSVIEWS, SYS.SYSCOLUMNS</i></entry>
+</row>
+<row>
+<entry colname="col1">VIEWS</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3"><i>SYS.SYSTABLES, SYS.SYSVIEWS, SYS.SYSCOLUMNS</i></entry>
+</row>
+<row>
+<entry colname="col1">COLUMNS</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3"><i>SYS.SYSTABLES, SYS.SYSVIEWS, SYS.SYSCOLUMNS</i></entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Manipulação básica de esquema</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">CREATE / DROP TABLE</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">CREATE / DROP VIEW</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">GRANT / REVOKE</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">ALTER TABLE ADD COLUMN</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">ALTER TABLE DROP COLUMN</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Tabela juntada</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">INNER JOIN</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">junção natural</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">LEFT, RIGHT OUTER JOIN</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">condição de junção</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">junção de colunas nomeada</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Tabela juntada</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">DATE, TIME, TIMESTAMP, INTERVAL simples</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim, menos INTERVAL</entry>
+</row>
+<row>
+<entry colname="col1">constantes data/hora</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">matemática data/hora</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">pode ser feito com métodos Java</entry>
+</row>
+<row>
+<entry colname="col1">comparações de data/hora</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">predicados: OVERLAPS</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">pode ser feito com métodos Java</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: VARCHAR</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">LENGTH</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">concatenação (||)</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Isolamento de transação</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">READ WRITE / READ ONLY</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">através do JDBC, propriedades do banco de dado e meio de armazenamento.</entry>
+</row>
+<row>
+<entry colname="col1">RU, RC, RR, SER</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Vários esquemas por usuário</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">Visão SCHEMATA</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3"><i>SYS.SYSSCHEMAS</i></entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Privilégios em tabelas</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">TABLE_PRIVILEGES</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">COLUMNS_PRIVILEGES</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">USAGE_PRIVILEGES</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Operações de tabela</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">Relaxamento de UNION</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">EXCEPT</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">INTERSECT</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">CORRESPONDING</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Instrução de definição de esquema</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">CREATE SCHEMA</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim, parcialmente</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Autorização de usuário</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">SET SESSION AUTHORIZATION</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">usado SET SCHEMA</entry>
+</row>
+<row>
+<entry colname="col1">CURRENT_USER</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">SESSION_USER</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">SYSTEM_USER</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Restrições de tabela</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">TABLE CONSTRAINTS</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3"><i>SYS.SYSCONSTRAINTS</i></entry>
+</row>
+<row>
+<entry colname="col1">REFERENTIAL CONSTRAINTS</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3"><i>SYS.SYSFOREIGNKEYS</i></entry>
+</row>
+<row>
+<entry colname="col1">CHECK CONSTRAINTS</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3"><i>SYS.SYSCHECKS</i></entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Esquema de documentação</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">SQL_FEATURES</entry>
+<entry colname="col2">SQL92I/FIPS 127-2</entry>
+<entry colname="col3">usado JDBC <i>DatabaseMetaData</i></entry>
+</row>
+<row>
+<entry colname="col1">SQL_SIZING</entry>
+<entry colname="col2">SQL92I/FIPS 127-2</entry>
+<entry colname="col3">usado JDBC <i>DatabaseMetaData</i></entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: DATETIME completo</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">precisão para TIME e TIMESTAMP</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table><table>
+<title>Suporte às funcionalidades do SQL-92: Funções de caractere completa</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">Expressão POSITION</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">usado métodos Java ou LOCATE</entry>
+</row>
+<row>
+<entry colname="col1">Funções UPPER/LOWER</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+<table>
+<title>Suporte às funcionalidades do SQL-92: Diversas</title>
+<tgroup cols="3">
+<colspec colname="col1"/>
+<colspec colname="col2"/>
+<colspec colname="col3"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">Funcionalidade</entry>
+<entry colname="col2">Origem</entry>
+<entry colname="col3"><ph conref="refconrefs.dita#prod/productshortname"></ph></entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">Identificadores delimitados</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Subconsultas correlacionadas</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Instruções de inserção, atualização e exclusão</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Junções</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Qualificações no WHERE</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">GROUP BY</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">HAVING</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Funções de agregação</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">ORDER BY</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Expressões de seleção</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">SELECT *</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">SQLCODE</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">não, em obsolescência no SQL-92</entry>
+</row>
+<row>
+<entry colname="col1">SQLSTATE</entry>
+<entry colname="col2">SQL92E</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">UNION, INTERSECT e EXCEPT em visões</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Conversão numérica implícita</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Conversão de caractere implícita</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Obter diagnóstico</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">usado JDBC <i>SQLException</i></entry>
+</row>
+<row>
+<entry colname="col1">Operações agrupadas</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">* qualificado na lista de seleção</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Identificadores em minúsculas</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">PRIMARY KEY com nulo</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Suporte a vários módulos</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">não (não é requerido e não faz parte do JDBC)</entry>
+</row>
+<row>
+<entry colname="col1">Ações de exclusão referencial</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">CASCADE, SET NULL, RESTRICT e NO ACTION.</entry>
+</row>
+<row>
+<entry colname="col1">Funções CAST</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Expressões INSERT</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Padrões explícitos</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Relaxamento de palavra chave</entry>
+<entry colname="col2">SQL92T</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Definição de domínio</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Expressão CASE</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">suporte parcial</entry>
+</row>
+<row>
+<entry colname="col1">Constantes cadeia de caracteres compostas</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">usado concatenação</entry>
+</row>
+<row>
+<entry colname="col1">Melhorias no LIKE</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Predicado UNIQUE</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Utilização de tabelas</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3"><i>SYS.SYSDEPENDS</i> </entry>
+</row>
+<row>
+<entry colname="col1">Esquema de informação intermediário</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">usado JDBC <i>DatabaseMetaData</i> e
+tabelas do sistema do <ph conref="refconrefs.dita#prod/productshortname"></ph>
+</entry>
+</row>
+<row>
+<entry colname="col1">Suporte a subprograma</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não é relevante para o JDBC, que é muito mais rico</entry>
+</row>
+<row>
+<entry colname="col1">Sinalização SQL intermediária</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Manipulação de esquema</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Identificadores longos</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Junção externa completa</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Especificação de zona horária</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Cursores rolados</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">parcial (rolagem não sensível ao conjunto de resultados
+através do JDBC 2.0)</entry>
+</row>
+<row>
+<entry colname="col1">Suporte a funções de conjunto intermediário</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">parcial</entry>
+</row>
+<row>
+<entry colname="col1">Definição de conjunto de caracteres</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">suporta idiomas do Java</entry>
+</row>
+<row>
+<entry colname="col1">Conjuntos de caracteres nomeados</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">suporta idiomas do Java</entry>
+</row>
+<row>
+<entry colname="col1">Valores de subconsulta escalar</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Predicado nulo expandido</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Gerenciamento de restrições</entry>
+<entry colname="col2">SQL92I</entry>
+<entry colname="col3">sim (ADD/DROP CONSTRAINT)</entry>
+</row>
+<row>
+<entry colname="col1">Tipos FOR BIT DATA</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Restrições de asserção</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Tabelas temporárias</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">somente sintaxe específica da IBM</entry>
+</row>
+<row>
+<entry colname="col1">SQL dinâmico completo</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Expressões de valor completa</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Testes de valor verdade</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">tabelas derivadas no FROM</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Sublinhado no final</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Tipos de dado indicador</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não é relevante para o JDBC</entry>
+</row>
+<row>
+<entry colname="col1">Ordem de nome referencial</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Sinalização SQL completa</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Construtores de linha e de tabela</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Qualificadores de nome de catálogo</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Tabelas simples</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Subconsultas no CHECK</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não, mas pode ser feito com métodos Java</entry>
+</row>
+<row>
+<entry colname="col1">Junção de união</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Agrupamento e tradução</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">Suportados os idiomas do Java</entry>
+</row>
+<row>
+<entry colname="col1">Ações de atualização referenciais</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">RESTRICT e NO ACTION. As demais podem ser feitas com gatilhos.</entry>
+</row>
+<row>
+<entry colname="col1">ALTER domínio</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">INSERT privilégios em colunas</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Tipos MATCH referenciais</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Melhorias de CHECK em visões</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não, as visões não são atualizáveis</entry>
+</row>
+<row>
+<entry colname="col1">Gerenciamento de sessão</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">usado JDBC</entry>
+</row>
+<row>
+<entry colname="col1">Gerenciamento de conexão</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">usado JDBC</entry>
+</row>
+<row>
+<entry colname="col1">Operações de auto-referenciamento</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">sim</entry>
+</row>
+<row>
+<entry colname="col1">Cursores não sensíveis</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">Sim, através do JDBC 2.0</entry>
+</row>
+<row>
+<entry colname="col1">Função de conjunto completa</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">parcialmente</entry>
+</row>
+<row>
+<entry colname="col1">Sinalização de catálogo</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Referências a tabela local</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+<row>
+<entry colname="col1">Atualização de cursor completa</entry>
+<entry colname="col2">SQL92F</entry>
+<entry colname="col3">não</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+</p>
+</section>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1055824.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1055824.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1055824.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1055824.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj1055824" xml:lang="pt-br">
+<title>CURRENT TIME</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>Função CURRENT TIME</indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>CURRENT TIME é sinônimo de
+<xref href="rrefsqlj33772.dita#rrefsqlj33772"></xref>.</p>
+</section>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj10696.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj10696.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj10696.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj10696.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj10696" xml:lang="pt-br">
+<title>INTEGER</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>Tipo de dado INTEGER</indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>INTEGER fornece 4 bytes de armazenamento para valores inteiros.</p>
+</section>
+<refsyn>
+<title>Sintaxe</title>
+<codeblock><b>{ INTEGER | INT }</b></codeblock>
+</refsyn>
+<section>
+<title>Tipo Java correspondente em tempo de compilação</title>
+<p><i>java.lang.Integer</i></p>
+</section>
+<section>
+<title>Tipo do metadado do JDBC (java.sql.Types)</title>
+<p>INTEGER</p>
+</section>
+<section>
+<title>Valor mínimo</title>
+<p id="sqlj88368">-2.147.483.648 (<i>java.lang.Integer.MIN_VALUE</i>)</p>
+</section>
+<section>
+<title>Valor máximo</title>
+<p id="sqlj81992">2.147.483.647 (<i>java.lang.Integer.MAX_VALUE</i>)</p>
+<p>Quando misturado com outros tipos de dado nas expressões, o tipo de dado
+do resultado segue as regras mostradas em
+<xref href="rrefsqlj27767.dita#rrefsqlj27767"></xref>.</p>
+<p>Consulte também <xref href="rrefsqlj20204.dita#rrefsqlj20204"></xref>.</p>
+</section>
+<example>
+<codeblock><b>3453
+425</b>
+</codeblock>
+</example>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080779.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080779.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080779.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080779.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj1080779" xml:lang="pt-br">
+<title>Precedência das expressões</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>Expressões<indexterm>hierarquia</indexterm><indexterm>precedência</indexterm></indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>A precedência das operações, da mais alta para a mais baixa, é:
+<ul>
+<li>(), ?, Constante (incluindo sinal), NULL, <i>ReferênciaColuna</i>,
+<i>SubconsultaEscalar</i>, CAST</li>
+<li>LENGTH, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, e outras operações nativas</li>
+<li>+ e - unários</li>
+<li>*, /, || (concatenação)</li>
+<li>+ e - binários</li>
+<li>comparações, comparações quantificadas, EXISTS, IN, IS NULL, LIKE, BETWEEN,
+IS</li>
+<li>NOT</li>
+<li>AND</li>
+<li>OR</li>
+</ul>
+</p>
+</section>
+<section>
+<p>A precedência pode ser especificada explicitamente colocando as
+expressões entre parênteses.
+A expressão entre parênteses é avaliada antes de qualquer operação fora dos
+parênteses ser aplicada a mesma.</p>
+</section>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080962.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080962.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080962.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1080962.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj1080962" xml:lang="pt-br">
+<title>Exemplo</title>
+<refbody>
+<example>
+<codeblock><b>(3+4)*9
+(idade &lt; 16 OR idade &gt; 65) AND empregado = TRUE</b>
+</codeblock>
+</example>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1082953.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1082953.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1082953.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1082953.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj1082953" xml:lang="pt-br">
+<title>Exemplo de parâmetros dinâmicos</title>
+<refbody>
+<example> <codeblock><b>PreparedStatement ps2 = conn.prepareStatement(
+    "UPDATE DISPONIBILIDADE_HOTEL SET QUARTOS_DISPONÍVEIS = " +
+    "(QUARTOS_DISPONÍVEIS - ?) WHERE ID_HOTEL = ? " +
+    "AND DATA_DE_RESERVA BETWEEN ? AND ?");
+<ph>-- este código de exemplo define os valores dos parâmetros dinâmicos
+-- como sendo iguais aos valores de variáveis do programa</ph>
+ps2.setInt(1, numeroQuartos);
+ps2.setInt(2, oHotel.idHotel);
+ps2.setDate(3, chegada);
+ps2.setDate(4, saida);
+updateCount = ps2.executeUpdate();</b>
+</codeblock>
+</example>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1083019.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1083019.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1083019.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj1083019.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj1083019" xml:lang="pt-br">
+<title>Onde são permitidos parâmetros dinâmicos</title>
+<refbody>
+<section>
+<p>Os parâmetros dinâmicos podem ser utilizados em qualquer lugar da expressão
+onde seu tipo de dado pode ser facilmente deduzido.
+<ol>
+<li>É permitido o uso como primeiro operando do BETWEEN, se o segundo ou o
+terceiro operando não for um parâmetro dinâmico.
+O tipo de dado do primeiro operando é assumido como sendo o tipo de dado do
+parâmetro que não é dinâmico, ou o resultado da união dos tipos do segundo e do
+terceiro operandos, se estes dois não forem parâmetros dinâmicos.
+<codeblock><b>WHERE ? BETWEEN DATE('1996-01-01') AND ?
+<ph>-- tipos assumidos como sendo DATE</ph></b>
+</codeblock></li>
+<li>É permitido o uso como segundo ou terceiro operando do BETWEEN.
+O tipo de dado é assumido como sendo o tipo de dado do operando à esquerda.
+<codeblock><b>WHERE DATE('1996-01-01') BETWEEN ? AND ?
+<ph>-- tipos assumidos como sendo DATE</ph></b>
+</codeblock></li>
+<li id="sqlj30695">É permitido o uso como operando à esquerda da lista IN
+se pelo menos um item da lista não for um parâmetro dinâmico.
+O tipo de dado do operando à esquerda é assumido como sendo o resultado da
+união dos tipos de dado dos parâmetros não dinâmicos da lista.
+<codeblock><b>WHERE ? NOT IN (?, ?, 'Santiago')
+<ph>-- tipos assumidos como sendo CHAR</ph></b>
+</codeblock></li>
+<li>É permitido o uso na lista de valores do predicado IN, se o primeiro
+operando não for um parâmetro dinâmico, ou seu tipo foi determinado pela
+regra anterior.
+O tipo dos parâmetros dinâmicos que aparecem na lista de valores é assumido
+como sendo o tipo do operando à esquerda.
+<codeblock><b>WHERE <b><i>ColunaPontoFlutuante</i></b> IN (?, ?, ?)
+<ph>-- tipos assumidos como sendo FLOAT</ph></b>
+</codeblock></li>
+<li id="sqlj18960">Para os operadores binários +, -, *, /, AND, OR, &lt;, &gt;,
+=, &lt;&gt;, &lt;= e &gt;=, é permitido o uso do parâmetro dinâmico como um
+dos operandos, mas não os dois.
+Seu tipo de dado é obtido a partir do tipo do outro lado.
+<codeblock><b>WHERE ? &lt; CURRENT_TIMESTAMP
+<ph>-- tipo assumido como sendo TIMESTAMP</ph></b>
+</codeblock></li>
+<li>A utilização em CAST é sempre permitida, porque CAST fornece tipo de dado
+ao parâmetro dinâmico.
+<codeblock><b>CALL valueOf(CAST (? AS VARCHAR(10)))</b>
+</codeblock></li>
+<li>É permitido o uso nos dois lados do operador LIKE.
+Quando utilizado no lado esquerdo, o tipo de dado do parâmetro dinâmico é
+definido como sendo o tipo de dado do operando à direita, mas com o comprimento
+máximo permitido para o tipo de dado.
+Quando utilizado no lado direito, o tipo de dado é assumido como sendo do
+mesmo comprimento e tipo de dado do operando à esquerda
+(LIKE é permitido nos tipos de dado CHAR e VARCHAR;
+para obter mais informações deve ser consultado
+<xref href="rrefsqlj40899.dita#rrefsqlj40899"></xref>).
+<codeblock><b>WHERE ? LIKE 'Santi%'
+<ph>-- tipo assumido como sendo CHAR com comprimento igual a
+-- java.lang.Integer.MAX_VALUE</ph></b>
+</codeblock></li>
+<li>O parâmetro ?, sem mais nada, é permitido em apenas um dos lados do operador
+||, ou seja, "? || ?" não é permitido.
+O tipo do parâmetro ? de um dos lados do operador || é determinado pelo tipo
+da expressão do outro lado do operador ||.
+Se a expressão do outro lado for do tipo de dado CHAR ou VARCHAR, o tipo do
+parâmetro será VARCHAR com o comprimento máximo permitido para o tipo de dado.
+Se a expressão do outro lado for do tipo de dado CHAR FOR BIT DATA ou
+VARCHAR FOR BIT DATA, o tipo de dado do parâmetro será VARCHAR FOR BIT DATA
+com o comprimento máximo permitido para o tipo de dado.
+<codeblock><b>SELECT coluna_bit || ?
+FROM tabela_usuario
+<ph>-- tipo assumido como sendo CHAR FOR BIT DATA
+-- com o comprimento especificado para coluna_bit</ph></b>
+</codeblock></li>
+<li><indexterm>? (parâmetro dinâmico)<indexterm>usado em expressão condicional</indexterm></indexterm>
+Em uma expressão condicional, que utiliza ?, também é permitida a utilização
+do parâmetro dinâmico (que também é representado por ?).
+O tipo do parâmetro dinâmico como primeiro operando é assumido como sendo
+booleano.
+Com relação ao segundo e terceiro operandos, somente um dos dois pode ser um
+parâmetro dinâmico, e seu tipo é assumido como sendo o mesmo do outro operando
+(ou seja, o terceiro e segundo operando, respectivamente).
+ <codeblock><b>SELECT c1 IS NULL ? ? : c1
+<ph>-- permite especificar o valor "padrão" em tempo de execução
+-- o parâmetro dinâmico é assumido como tendo o tipo de c1
+-- não podem haver parâmetros dinâmicos dos dois lados dos :</ph></b>
+</codeblock></li>
+<li>É permitido usar parâmetro dinâmico como item da lista de valores ou da
+lista de seleção da instrução INSERT.
+O tipo do parâmetro dinâmico é assumido como sendo o tipo da coluna de destino.
+O parâmetro ?, sem mais nada, não é permitido na lista de seleção, inclusive na
+lista de seleção da subconsulta, a menos que exista uma coluna correspondente
+em UNION, INTERSECT ou EXCEPT
+(consulte o nº
+<xref href="rrefsqlj1083019.dita#rrefsqlj1083019/sqlj20756">16</xref>, abaixo)
+que não seja dinâmica.
+<codeblock><b>INSERT INTO t VALUES (?)
+<ph>-- o parâmetro dinâmico é assumido como sendo
+-- do tipo da única coluna da tabela t</ph>
+INSERT INTO t SELECT ?
+FROM t2
+<ph>-- não é permitido</ph></b>
+</codeblock></li>
+<li>O parâmetro ? na comparação com uma subconsulta recebe seu tipo a partir
+da expressão sendo selecionada na subconsulta. Por exemplo:
+<codeblock><b>SELECT *
+FROM tab1
+WHERE ? = (SELECT x FROM tab2)
+
+SELECT *
+FROM tab1
+WHERE ? = ANY (SELECT x FROM tab2)
+<ph>-- Nos dois casos, o tipo do parâmetro dinâmico é
+-- assumido como sendo o mesmo tipo de tab2.x.</ph></b>
+</codeblock></li>
+<li>É permitido usar parâmetro dinâmico como o valor em uma instrução UPDATE.
+O tipo do parâmetro dinâmico é assumido como sendo o tipo da coluna na tabela
+de destino.
+<codeblock><b>UPDATE t2 SET c2 =? <ph>-- o tipo é assumido como sendo o tipo de c2</ph></b>
+</codeblock></li>
+<li>Não é permitido parâmetro dinâmico como operando dos operadores unários
+- e +.</li>
+<li>LENGTH permite parâmetro dinâmico.
+O tipo é assumido como sendo o comprimento máximo do tipo VARCHAR.
+<codeblock><b>SELECT LENGTH(?)</b>
+</codeblock></li>
+<li>Comparações qualificadas.
+<codeblock><b>? = SOME (SELECT 1 FROM t)
+<ph>-- é válido. O parâmetro dinâmico é assumido como sendo do tipo INTEGER</ph>
+1 = SOME (SELECT ? FROM t)
+<ph>-- é válido. O parâmetro dinâmico é assumido como sendo do tipo INTEGER</ph></b>
+</codeblock></li>
+<li id="sqlj20756">É permitido usar parâmetro dinâmico para representar uma
+coluna se aparecer em uma expressão UNION, INTERSECT ou EXCEPT;
+O <ph conref="refconrefs.dita#prod/productshortname"></ph> pode inferir
+o tipo de dado a partir da coluna correspondente na expressão.
+<codeblock><b>SELECT ?
+FROM t
+UNION SELECT 1
+FROM t
+<ph>-- o parâmetro dinâmico é assumido como sendo INT</ph>
+VALUES 1 UNION VALUES ?
+<ph>-- o parâmetro dinâmico é assumido como sendo INT</ph></b>
+</codeblock>
+</li>
+<li>É permitido parâmetro dinâmico como operando à esquerda de uma expressão IS,
+sendo assumido como booleano.</li>
+</ol></p>
+</section>
+<section>
+<p>Uma vez que o tipo de dado do parâmetro dinâmico tenha sido
+determinado baseado na expressão onde se encontra, esta expressão pode estar
+em qualquer lugar onde normalmente seria permitida se não incluísse o
+parâmetro dinâmico.
+Por exemplo, acima foi dito que o parâmetro dinâmico não poderia ser utilizado
+como operando do - unário.
+Entretanto, pode aparecer em expressões que são operandos do menos unário, como:
+<codeblock><b>- (1+?)</b>
+</codeblock>
+</p>
+</section>
+<section>
+<p>O parâmetro dinâmico é assumido como sendo do tipo INTEGER
+(porque o outro operando operador binário + é do tipo INT).
+Como se sabe seu tipo, é permitido como operando do - unário.</p>
+</section>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj11277.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj11277.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj11277.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj11277.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj11277" xml:lang="pt-br">
+<title>VALUES Expressão</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>VALUES expressão</indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>"VALUES Expressão" permite construir uma linha ou uma tabela a partir de
+valores.
+A instrução VALUES é utilizada quando não existe uma cláusula FROM.
+Esta construção pode ser utilizada em todos os locais onde uma consulta pode
+ser utilizada e, portanto, pode ser utilizada como uma instrução que retorna
+um <i>ResultSet</i>, dentro de expressões e instruções sempre que uma
+subconsulta for permitida, e como fonte de valores para a instrução INSERT.</p>
+</section>
+<refsyn>
+<title>Sintaxe</title>
+<codeblock><b>{
+    VALUES ( <i><xref href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> {, <i><xref
+href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> }* )
+        [ , ( <i><xref href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> {, <i><xref
+href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> }* ) ]* |
+    VALUES <i><xref href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> [ , <i><xref
+href="rrefsqlj87167.dita#rrefsqlj87167">Valor</xref></i> ]* |
+ }</b>
+</codeblock>
+<p>A primeira forma constrói linhas com várias colunas.
+A segunda forma constrói linhas com uma única coluna, com cada expressão sendo
+o valor da coluna da linha.</p>
+<p>A palavra chave DEFAULT é permitida somente quando a expressão VALUES está
+em uma instrução INSERT.
+A especificação de DEFAULT para a coluna insere o valor padrão da coluna na
+coluna.
+Outra forma de inserir o valor padrão na coluna é omitir a coluna na lista
+de colunas, e somente inserir valores nas outras colunas da tabela.</p>
+</refsyn>
+<example> <codeblock><b><ph>-- 3 linhas de 1 coluna</ph>
+VALUES (1),(2),(3);
+
+<ph>-- 3 linhas de 1 coluna</ph>
+VALUES 1, 2, 3;
+
+<ph>-- 1 linha de 3 colunas</ph>
+VALUES (1, 2, 3);
+
+<ph>-- 3 linhas de 2 colunas</ph>
+VALUES (1,21),(2,22),(3,23);
+
+<ph>-- construção de uma tabela derivada</ph>
+VALUES ('laranja', 'laranja'), ('maçã', 'vermelha'),
+('banana', 'amarela')
+
+<ph>-- Inserir dois novos departamentos na tabela DEPARTAMENTOS
+-- utilizando uma instrução, mas não atribuir gerente
+-- aos novos departamentos.</ph>
+INSERT INTO DEPARTAMENTOS (NUM_DEP, NOME_DEP, ADMRDEPT)
+  VALUES ('B11', 'COMPRAS', 'B01'),
+    ('E41', 'ADMINISTRAÇÃO DE BANCO DE DADOS', 'E01')
+
+<ph>-- inserir uma linha com valor DEFAULT para a coluna PROJ_PRINC</ph>
+INSERT INTO PROJETO (NUM_PROJ, NOME_PROJ, NUM_DEP, EMP_RESP,
+    PROJ_DATA_INÍCIO, PROJ_PRINC)
+VALUES ('PL2101', 'ENSURE COMPAT PLAN', 'B01', '000020',
+    CURRENT_DATE, DEFAULT);
+
+<ph>-- utilização de função nativa</ph>
+VALUES CURRENT_DATE
+
+<ph>-- obter o valor a partir de uma expressão arbitrária</ph>
+VALUES (3*29, 26.0E0/3)
+
+<ph>-- obter o valor retornado por uma função nativa</ph>
+VALUES CHAR(1)
+</b>
+</codeblock>
+</example>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj12362.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj12362.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj12362.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj12362.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj12362" xml:lang="pt-br">
+<title>NUMERIC</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>Tipo de dado NUMERIC</indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>NUMERIC é sinônimo de
+<xref href="rrefsqlj15260.dita#rrefsqlj15260">DECIMAL</xref>, e
+se comporta da mesma maneira.
+Consulte <xref href="rrefsqlj15260.dita#rrefsqlj15260"></xref>.</p>
+</section>
+<refsyn>
+<title>Sintaxe</title>
+<codeblock><b>NUMERIC [(<i>precisão</i> [, <i>escala</i> ])]</b>
+</codeblock>
+</refsyn>
+<section>
+<title>Tipo Java correspondente em tempo de compilação</title> <p><i>java.math.BigDecimal</i></p>
+</section>
+<section>
+<title>JDBC metadata Ttype (java.sql.Types)</title> <p>NUMERIC</p>
+</section>
+<example>
+<codeblock><b>123.456
+.001</b>
+</codeblock>
+</example>
+</refbody>
+</reference>

Added: db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj13083.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj13083.dita?rev=388422&view=auto
==============================================================================
--- db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj13083.dita (added)
+++ db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj13083.dita Thu Mar 23 23:09:52 2006
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.
+
+Licensed 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 "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqlj13083" xml:lang="pt-br">
+<title>SUM</title>
+<prolog>
+<metadata>
+<keywords>
+<indexterm>Função de agregação SUM</indexterm>
+</keywords>
+</metadata>
+</prolog>
+<refbody>
+<section>
+<p>SUM é uma expressão de agregação que calcula a soma da expressão para um
+conjunto de linhas (consulte
+<xref href="rrefsqlj33923.dita#rrefsqlj33923"></xref>).
+SUM é permitida apenas nas expressões que resultam em tipos de dado numéricos.</p>
+</section>
+<refsyn>
+<title>Sintaxe</title>
+<codeblock><b>SUM ( [ DISTINCT | ALL ] <i>Expressão</i> )</b></codeblock>
+<p>Os qualificadores DISTINCT e ALL eliminam ou mantêm as linhas duplicadas.
+É assumido ALL se não for especificado nem ALL nem DISTINCT.
+Por exemplo, se a coluna contiver os valores 1, 1, 1, 1 e 2, SUM(coluna)
+retorna um valor maior que  SUM(DISTINCT coluna).</p>
+<p>Somente é permitida uma expressão de agregação DISTINCT por
+<i><xref href="rrefselectexpression.dita#rrefselectexpression">ExpressãoSeleção</xref></i>.
+Por exemplo, a seguinte consulta não é permitida:
+<codeblock><b>SELECT AVG (DISTINCT TEMPO_VÔO), SUM (DISTINCT MILHAS)
+FROM VÔOS</b>
+</codeblock>
+</p>
+<p>A expressão pode conter várias referências a colunas ou expressões, mas
+não pode conter outra agregação ou subconsulta.
+Deve ter como resultado um tipo de dado numérico nativo.
+Se uma expressão for avaliada como NULL, a agregação saltará este valor.</p>
+<p>O tipo de dado do resultado é idêntico ao da expressão em que opera
+(pode estourar).</p>
+</refsyn>
+<example>
+<codeblock><b>-- descobrir a quantidade de assentos econômicos disponíveis:
+SELECT SUM (ASSENTOS_ECONÔMICOS) FROM LINHAS_AÉREAS;
+
+-- utilizar SUM fazendo referência a várias colunas
+-- (descobrir o número total de todos os assentos ocupados):
+SELECT SUM (ASSENTOS_ECONÔMICOS_OCUPADOS +
+            ASSENTOS_EXECUTIVOS_OCUPADOS +
+            ASSENTOS_PRIMEIRA_CLASSE_OCUPADOS) AS ASSENTOS_OCUPADOS
+FROM VÔOS_DISPONIBILIDADE;
+</b>
+</codeblock>
+</example>
+</refbody>
+</reference>