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.

Variable splitten Oracle-PL/SQL

Empfohlene Antworten

Veröffentlicht

Hallo!

Wie kann ich den Inhalt einer Variable in mehrere Teile aufteilen?

x:=i_tag||i_monat||i_jahr||i_stunde||i_minute;

datum:=to_date(x, 'DDMMYYYYHH24MI');

bzw.

next_date und next_sec (enthalten datum/Uhrzeit)

In der Variable "datum" sind ja Tag, Monat, Jahr, Stunde und Minute gespeichert, jetzt will ich quasi die Umkehrung erreichen, also das ich dann die Werte für Tag, Monat, Jahr, Stunde und Minute wieder in einzelnen Variablen habe...

Bin für jeden Tip dankbar.

mfg

yallayalla

Das kannst du mit der SUBSTR machen.

Beispiel:

substr('23092004', 0, 2) => 23 also Tag

substr('23092004', 3, 2) => 09 also Monat

substr('23092004', 5, 4) => 2004 also Jahr

Genau das, was ich machen wollte!

Besten Dank.

mfg

yallayalla

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.