-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo Jost Lange,
Am Thu, 29 Mar 2012, um 09:49:19 [GMT +0200] (09:49 bei mir) schrieb
Jost Lange:
>>>> Konkret möchte ich alle Werte finden, die mit sechs Ziffern beginnen,
>>>> d.h. also mein Ausdruck wäre etwas wie
>>>>
>>>> '^[0-9]{6}.*$'
>
> Kann mir jemand freundlicherweise kurz erklären, um was es sich bei
> vorsteh. Hieroglyphen
> handelt und wozu diese für den Normal-Anwender von LO nütze sind?
Das ist ein sogenannter Regulärer Ausdruck (Regular Expression), eine
bestimmte Art und Weise Suchmuster zu definieren.
http://de.wikipedia.org/wiki/Regex
>> Wenn Du Dir sicher bist, dass es keine Einträge gibt, die 1Z3456
>> heißen, dann kannst Du einfach die 'LEFT' Funktion benutzen:
>>
>> SELECT LEFT( "TextFeld", 6 ) AS "Stellen 1 bis 6",
>> ( CONVERT ( LEFT( "TextFeld", 6 ) , BIGINT ) ) * 3 AS
>> "Konvertiert und Plutimikation"
>> FROM "Tabelle1"
>> WHERE LEFT( "TextFeld", 6 ) >= '0'
>> AND LEFT( "TextFeld", 6 ) <= '999999'
>>
>> sonst musst Du jede Stelle einzeln abfragen:
>>
>> SELECT LEFT( "TextFeld", 6 ) AS "Stellen 1 bis 6",
>> (CONVERT(LEFT("TextFeld",6),BIGINT)) * 3 AS "Konvertiert und
>> Plutimikation"
>> FROM "Tabelle1"
>> WHERE SUBSTRING ( "TextFeld", 1, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 1, 1 ) <= '9'
>> AND SUBSTRING ( "TextFeld", 2, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 2, 1 ) <= '9'
>> AND SUBSTRING ( "TextFeld", 3, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 3, 1 ) <= '9'
>> AND SUBSTRING ( "TextFeld", 4, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 4, 1 ) <= '9'
>> AND SUBSTRING ( "TextFeld", 5, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 5, 1 ) <= '9'
>> AND SUBSTRING ( "TextFeld", 6, 1 ) >= '0' AND SUBSTRING (
>> "TextFeld", 6, 1 ) <= '9'
>
> und wozu braucht man diese vorsteh. Kenntnisse? Aus welchem
> EDV-Sprachbereich sind sie?
Das sind Befehle der Programmiersprache Basic (hier speziell
LibreOffice Basic).
- --
Mit freundlichem Gruß
GwenDragon
E-Mail: [email protected]
Website: http://gwendragon.de
Blog: http://gwendragon.de/blog/
- -----------------------------------------------------------------
E-Mail mit GnuPG signiert/Signed with GnuPG
GnuPG-Signatur DSA/1024
Key-ID: 0x6E56AC7D4492AD16
Fingerprint: 0BC8 DDF7 E381 190B AF7D A327 6E56 AC7D 4492 AD16
- -----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iEYEARECAAYFAk90Iw8ACgkQblasfUSSrRbeCgCfW8dbn3fIyQ1yoxzFSwLDcy5x
YEsAn07R+6R4Sl+P/AaTyKG6S3usGjq/
=YZbz
-----END PGP SIGNATURE-----
--
Informationen zum Abmelden: E-Mail an [email protected]
Probleme?
http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert