Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Am Samstag, den 01.08.2020, 21:42 +0200 schrieb Robert Großkopf:

Ich habe das einmal mit der internen HSQLDB versucht:
Attempt to define a second primary key: Id2 in statement [CREATE TABLE
"Tabelle1" ("ID" INTEGER NOT NULL IDENTITY,"Kundennummer" INTEGER NOT
NULL IDENTITY]

Ja. Das kann ich nachvollziehen. Nur stürzt bei mir LibreOffice nicht ab und
ich kann die angelegte Datenbank weiter benutzen, sofern ich für die zweite
Spalte keinen AutoWert festlege.

Die Tabelle lässt sich bei mir gar nicht erstellen, wenn ich beiden
Feldern einen AutoWert zuweise. IDENTITY bedeutet dabei, dass es sich
beides Mal um Autowert handelt. Mit einfachen Primärschlüssel geht so
etwas natürlich, aber 2 Autowertschlüssel würden ja sowieso beständig
das Gleiche anzeigen, es sei denn, dass einer einen anderen Startpunkt
hat. Sie machen auf jeden Fall keinen Sinn.

Es ist jedoch sonderbar, dass LibreOffice für eine Spalte, in welcher der
AutoWert eingestellt wird, automatisch diese ebenfalls als Primärschlüssel
festlegen möchte. Ist bereits ein solcher vorhanden kann das natürlich nicht
funktionieren und muss in die Hose gehen.
Legt man nun erneut die ursprüngliche Spalte als Primärschlüssel fest, so wird
die AutoWert-Einstellung entfernt.

- -- 

MfG Richi

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERqPC1cUAShrzNBXW+NRy+KEKcZgFAl8l9J8ACgkQ+NRy+KEK
cZhocQ//eTBcE15rmyC8yJXTpyDA3rB6Da1RYeLNmV4240YTwPcpNQcltjVTC/Ku
Va7jqH7PSYmU3j+/7Px2nMOdsqiS9JhITIoSwyAUndJUbW0RM/TleA1t9ouCtN3q
SRu6CXT4DFmsAfuNXE3Z8I/W+pCPgTdseATed2googjZM7RV6jb89wdhcE4il8Ud
hKUgzv9hPvC7g2HeYwYIBacjArdyrZ6b5+gMRJI0TWgeUebsUUi/ef9HLeIErpJk
Qe7xWWsx2e/QSGC+1vvo4B+/UQGhJ0YQMHL2wRv4edcgU3SH25LAq2uHivPvVZcF
jL+JQ5OZCUBnGw9Ta7bIf5HBEwPQGRRTyzy1nVfCvoYBlZkhrdIoj2ELach7oQ3o
rJSNG05tnnon9j0+AqBv+4ZQrYfhBC9tSMg7ck8guyOnXqnuMxyjOb9+IYiRlwS5
EJW2S4KeiU9c16s6yrRr5dEsCN3zRv0UBjDTDp0mWCzw4kSAAoRcPv94CxYJ87A7
JLTiV/OprlNgU2K46IkfEmK+xqXYb8wM1ubSm9A6tvRPclEkhNz6xLI0s8SgLBNO
4CcqHfHllThk+9zELFyHSDMVRJ6+z1Vzp54EZZKSXnOtc6pgrUFcDlhjdcl/TVv/
JgfjBzooR/JiWzgkihkTcEX4cu1bZ4u2GMTuHiZRfsD5w2Tnuv4=
=GfVQ
-----END PGP SIGNATURE-----


-- 
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.