Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQL - MS Access - Problem beim Auselesen eines Teilstrings

Empfohlene Antworten

Hallo,

ich muss aus einem bestehenden DB Feld einen Teilstring "kopieren" und in ein anderes Feld einfügen.

Beispiel:

Lagerort: Hauptlager

Lagerart: Lagerware

Kurzbeschreibung: Ring Turmalin 29,76 ct/2 Saphire 1,53 ct - 37 gr

Detail1: (2)Saphir 1,530

Detail2: (1)Turmalin 29,760

Detail3: (917)Gold 37,0g

Detail4:

Artikelbeschriftung:

Ich benötige aber nur folgenden Teil:

Ring Turmalin 29,76 ct/2 Saphire 1,53 ct - 37 gr

Also den Satz nach dem Wort "Kurzbeschreibung" bis vor das Wort "Detail1". Dies ist immer so nur die Länge des "Zwischenraums" variiert.

Kann mir jemand helfen wie ich diesen String mit SQL unter MS Access extrahieren kann ?

MfG

Moritz H.

So hier die Lösung, die ich gefunden habe:

update art set Beschreibung=

mid(Notiz,

(instr(Notiz,'Kurzbeschreibung:'))+18,

instr(Notiz,'Detail1:')-(instr(Notiz,'Kurzbeschreibung:'))-18)

MfG

Moritz H.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.