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


Hey Robert, *

Am 20.01.2020 um 17:49 schrieb Robert Großkopf:
Hallo Leo-Hubert,

Thomas meint diese Zeile:
sp3 = oAbfrageergebnisQuell.getLong(3)

korrekt, eine Zeile unter mehreren...;))

Mach' daraus

sp3 = oAbfrageergebnisQuell.getString(3)

na, vorher:

dim sp3 as string

dann

sp3 = oAbfrageergebnisQuell.getString(3)

IF sp3="" THEN
        sp3="NULL"
END IF

Den Teil brauchste eigentlich nicht (es sei denn, die HSQLDB engine braucht das??).

Wenn Du später zuweist:

"INSERT INTO ""tbl_Auswinterung""
(""ID"",""StockNr"",""Brutwaben"",""Bemerkung"",""Futterwaben"",""Totenfall"",""Datum"",""Jahr_ID"",""Stärke_ID"")
VALUES
('"+inID+"',...., '" & sp3 & "'...)

und sp3 ist ne leerer String, so bleibt der Spaltenwert auf "NULL" .

Dass Du NULL dort explizit reinschreiben musst, ist an sich nicht nötig... es sei denn, es ist ne Besonderheit von HSQLDB..;))

VG

Thomas


--
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.