diff options
Diffstat (limited to 'helpcontent2/source/text/sdatabase/dabaadvpropgen.xhp')
-rw-r--r-- | helpcontent2/source/text/sdatabase/dabaadvpropgen.xhp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/helpcontent2/source/text/sdatabase/dabaadvpropgen.xhp b/helpcontent2/source/text/sdatabase/dabaadvpropgen.xhp new file mode 100644 index 000000000..d9312dc5e --- /dev/null +++ b/helpcontent2/source/text/sdatabase/dabaadvpropgen.xhp @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + --> +<helpdocument version="1.0"> +<meta> +<topic id="textsharedexplorerdatabasedabaadvpropgenxml" indexer="include" status="PUBLISH"> +<title id="tit" xml-lang="en-US">Generated Values</title> +<filename>/text/sdatabase/dabaadvpropgen.xhp</filename> +</topic> +<history> +<created date="2004-07-30T11:20:09">Advanced Properties dialog Generated values tab page</created> +</history> +</meta> +<body> +<bookmark xml-lang="en-US" branch="index" id="bm_id521623154765032"> + <bookmark_value>database advanced properties;autoincrement values</bookmark_value> + <bookmark_value>database advanced properties;automatic generated values</bookmark_value> + <bookmark_value>database advanced properties;retrieve generated values</bookmark_value> + <bookmark_value>database advanced properties;query generated values</bookmark_value> +</bookmark> +<section id="generated"> +<h1 id="par_idN10553"><link href="text/sdatabase/dabaadvpropgen.xhp">Generated Values</link></h1> +<paragraph role="paragraph" id="par_idN10563" xml-lang="en-US">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" localize="false"><comment>how to get this: Edit Database AdvancedProp ??? I have no idea</comment></paragraph> +<paragraph role="paragraph" id="par_id7684560" xml-lang="en-US">The availability of the following controls depends on the type of database:</paragraph> +<h2 id="par_idN1058C">Retrieve generated values</h2> +<paragraph role="paragraph" id="par_idN10590" xml-lang="en-US"><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> +<h2 id="par_idN10593">Auto-increment statement</h2> +<paragraph role="paragraph" id="par_idN10597" xml-lang="en-US"><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">CREATE TABLE "table1" ("id" INTEGER AUTO_INCREMENT)</paragraph> +<paragraph role="paragraph" id="par_idN10634" xml-lang="en-US">For this example, you must enter AUTO_INCREMENT into the <emph>Auto-increment statement</emph> box.</paragraph> +<h2 id="par_idN105AA">Query of generated values</h2> +<paragraph role="paragraph" id="par_idN10645" xml-lang="en-US"><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">SELECT LAST_INSERT_D();</paragraph> +</body> +</helpdocument> |