forked from amazingfate/help
68 lines
4.5 KiB
XML
Executable File
68 lines
4.5 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
***********************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: dabaadvpropgen.xhp,v $
|
|
*
|
|
* $Revision: 1.6 $
|
|
*
|
|
* last change: $Author: hr $ $Date: 2006-08-14 15:31:53 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************
|
|
-->
|
|
|
|
<helpdocument version="1.0">
|
|
<meta>
|
|
<topic id="textsharedexplorerdatabasedabaadvpropgenxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Generated Values</title>
|
|
<filename>/text/shared/explorer/database/dabaadvpropgen.xhp</filename>
|
|
</topic>
|
|
<history>
|
|
<created date="2004-07-30T11:20:09">Advanced Properties dialog Generated values tab page</created>
|
|
<lastedited date="2006-02-13T15:24:56">dedr: reviewed</lastedited>
|
|
</history>
|
|
</meta>
|
|
<body>
|
|
<section id="generated">
|
|
<paragraph role="heading" id="par_idN10553" xml-lang="en-US" level="1" l10n="NEW"><link href="text/shared/explorer/database/dabaadvpropgen.xhp">Generated Values</link></paragraph>
|
|
<paragraph role="paragraph" id="par_idN10563" xml-lang="en-US" l10n="NEW">Specifies the options for automatically generated values for new data records.<comment>UFI: all text copied from shared\explorer\database\11020000.xhp</comment></paragraph>
|
|
</section>
|
|
<paragraph role="paragraph" id="par_idN10578" xml-lang="en-US" l10n="NEW"><comment>how to get this: Edit Database AdvancedProp ??? I have no idea</comment></paragraph>
|
|
<paragraph role="paragraph" id="par_id7684560" xml-lang="en-US" l10n="NEW">The availability of the following controls depends on the type of database:</paragraph>
|
|
<paragraph role="heading" id="par_idN1058C" xml-lang="en-US" level="2" l10n="NEW">Retrieve generated values</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10590" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Enables $[officename] support for auto-incremented data fields in the current ODBC or JDBC data source. Select this option if the auto-increment feature in the SDBCX layer of the database is not supported. In general<comment>UFI: this does not mean that something is set by default, but "normally,"</comment>, the auto-increment is selected for the primary key field.</ahelp></paragraph>
|
|
<paragraph role="heading" id="par_idN10593" xml-lang="en-US" level="2" l10n="NEW">Auto-increment statement</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10597" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Enter the SQL command specifier that instructs the data source to auto-increment a specified Integer data field.</ahelp> For example, the following MySQL statement used the AUTO_INCREMENT statement to increase the "id" field each time the statement creates a data field:</paragraph>
|
|
<paragraph role="code" id="par_idN105A0" xml-lang="en-US" l10n="NEW">CREATE TABLE "table1" ("id" INTEGER AUTO_INCREMENT)</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10634" xml-lang="en-US" l10n="NEW">For this example, you must enter AUTO_INCREMENT into the <emph>Auto-increment statemen</emph>t box.</paragraph>
|
|
<paragraph role="heading" id="par_idN105AA" xml-lang="en-US" level="2" l10n="NEW">Query of generated values</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10645" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Enter an SQL statement that returns the last auto-incremented value for the primary key data field.</ahelp> For example:</paragraph>
|
|
<paragraph role="code" id="par_idN105B1" xml-lang="en-US" l10n="NEW">SELECT LAST_INSERT_D();</paragraph>
|
|
</body>
|
|
</helpdocument>
|