merge the formfield patch from ooo-build
[ooovba.git] / helpcontent2 / source / text / shared / explorer / database / tablewizard03.xhp
blob501962dccc290ebe46b2823432510dc845ee1d9a
1 <?xml version="1.0" encoding="UTF-8"?>
4 <!--***********************************************************************
6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7 *
8 * Copyright 2008 by Sun Microsystems, Inc.
10 * OpenOffice.org - a multi-platform office productivity suite
12 * $RCSfile: tablewizard03.xhp,v $
13 * $Revision: 1.11 $
15 * This file is part of OpenOffice.org.
17 * OpenOffice.org is free software: you can redistribute it and/or modify
18 * it under the terms of the GNU Lesser General Public License version 3
19 * only, as published by the Free Software Foundation.
21 * OpenOffice.org is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU Lesser General Public License version 3 for more details
25 * (a copy is included in the LICENSE file that accompanied this code).
27 * You should have received a copy of the GNU Lesser General Public License
28 * version 3 along with OpenOffice.org. If not, see
29 * <http://www.openoffice.org/license.html>
30 * for a copy of the LGPLv3 License.
32 ************************************************************************-->
36 <helpdocument version="1.0">
37 <meta>
38 <topic id="textsharedexplorerdatabasetablewizard03xml" indexer="include" status="PUBLISH">
39 <title id="tit" xml-lang="en-US">Table Wizard - Set Primary Key</title>
40 <filename>/text/shared/explorer/database/tablewizard03.xhp</filename>
41 </topic>
42 <history>
43 <created date="2004-07-06T15:25:35">UFI: new Table Wizard page 3</created>
44 <lastedited date="2005-11-18T09:50:11">YJ: checked</lastedited>
45 </history>
46 </meta>
47 <body>
48 <section id="setprimary">
49 <paragraph role="heading" id="par_idN10546" xml-lang="en-US" level="1" l10n="NEW"><link href="text/shared/explorer/database/tablewizard03.xhp">Table Wizard - Set Primary Key</link></paragraph>
50 <paragraph role="paragraph" id="par_idN10556" xml-lang="en-US" l10n="NEW">Specifies a field in the table to be used as a primary key.</paragraph>
51 </section>
52 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_CHK_USEPRIMEKEY" id="bm_id2796411" localize="false"/>
53 <paragraph role="heading" id="par_idN10559" xml-lang="en-US" level="2" l10n="NEW">Create a primary key</paragraph>
54 <paragraph role="paragraph" id="par_idN1055D" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select to create a primary key. Add a primary key to every database table to uniquely identify each record. For some database systems within %PRODUCTNAME, a primary key is mandatory for editing the tables.</ahelp></paragraph>
55 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_OPT_PK_AUTOMATIC" id="bm_id1500289" localize="false"/>
56 <paragraph role="heading" id="par_idN10560" xml-lang="en-US" level="3" l10n="NEW">Automatically add a primary key</paragraph>
57 <paragraph role="paragraph" id="par_idN10564" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select to automatically add a primary key as an additional field.</ahelp></paragraph>
58 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_OPT_PK_SINGLE" id="bm_id9485152.00000001" localize="false"/>
59 <paragraph role="heading" id="par_idN10567" xml-lang="en-US" level="3" l10n="NEW">Use an existing field as a primary key</paragraph>
60 <paragraph role="paragraph" id="par_idN1056B" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select to use an existing field with unique values as a primary key.</ahelp></paragraph>
61 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_LB_PK_FIELDNAME" id="bm_id6801049" localize="false"/>
62 <paragraph role="heading" id="par_idN1056E" xml-lang="en-US" level="4" l10n="NEW">Field name</paragraph>
63 <paragraph role="paragraph" id="par_idN10572" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select the field name.</ahelp></paragraph>
64 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_CK_PK_AUTOVALUE" id="bm_id8796349" localize="false"/>
65 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_CK_PK_AUTOVALUE_AUTOMATIC" id="bm_id1406292" localize="false"/>
66 <paragraph role="heading" id="par_idN10575" xml-lang="en-US" level="4" l10n="NEW">Auto value</paragraph>
67 <paragraph role="paragraph" id="par_idN10579" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select to automatically insert a value and increment the field's value for each new record. The database must support automatic incrementation in order to use the <emph>Auto value</emph> feature.</ahelp></paragraph>
68 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_OPT_PK_SEVERAL" id="bm_id130008" localize="false"/>
69 <paragraph role="heading" id="par_idN1057C" xml-lang="en-US" level="3" l10n="NEW">Define primary key by several fields</paragraph>
70 <paragraph role="paragraph" id="par_idN10580" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select to create a primary key from a combination of several existing fields.</ahelp></paragraph>
71 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_FIELDS_PK_AVAILABLE" id="bm_id2555009" localize="false"/>
72 <paragraph role="heading" id="par_idN10583" xml-lang="en-US" level="4" l10n="NEW">Available fields</paragraph>
73 <paragraph role="paragraph" id="par_idN10587" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select a field and click &gt; to add it to the list of primary key fields.</ahelp></paragraph>
74 <embed href="text/shared/autopi/01090100.xhp#uebernehmen"/>
75 <embed href="text/shared/autopi/01090100.xhp#entfernen"/>
76 <bookmark xml-lang="en-US" branch="hid/HID_DLGTABLE_CMDREMOVE_PK_SELECTED" id="bm_id8829309" localize="false"/>
77 <paragraph role="heading" id="par_idN1059A" xml-lang="en-US" level="4" l10n="NEW">Primary key fields</paragraph>
78 <paragraph role="paragraph" id="par_idN1059E" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Select a field and click &lt; to remove it from the list of primary key fields. The primary key is created as a concatenation of the fields in this list, from top to bottom.</ahelp></paragraph>
79 <paragraph role="paragraph" id="par_idN105A1" xml-lang="en-US" l10n="NEW"><link href="text/shared/explorer/database/tablewizard04.xhp" name="Table Wizard - Create table">Table Wizard - Create table</link></paragraph>
80 </body>
81 </helpdocument>