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.

wie kann man to_date anwenden

Empfohlene Antworten

Hallo,

kann mir jemand sagen, ob es möglich ist to_date in dieser Form anzuwenden:

select to_date(spaltenname, 'yyyymmdd') from tabellenname

irgendwie bekomme ich dann immer diese Meldeung:

ORA-01858: ein nicht-numerisches Zeichen wurde gefunden, wo numerisches erwartet wurde

Bitte helft mir.

Was steht denn in der Spalte für Werte/Datentyp?

ein Datum, also Date

Hi,

das kann so nicht funktionieren. to_date wandelt in ein Datum (Datentyp DATE) um, also ist dei Statement in dieser Form nicht wirklich sinnvoll.

was genau soll denn diese Statement bezwecken? Ich nehm einfach mal an, das du das Datum in o.g. Form ('ddmmyyy') formatieren willst oder?

Wenn du es nur formatieren möchtest (zwecks Ausgabe) dann verwende lieber to_char(spaltenname. 'ddmmyyyy').

Wenn du es umwandeln möchtest (sprich den Datentyp beibehalten, nur anders formatiert) dann könnte so etwas wie to_date( ...to_char(..., 'ddmmyyyy'), 'ddmmyyyy') from ... funktionieren.

Hoffe das hilft dir etwas weiter.

Gruß, Eight

danke, es war to_char was ich gebraucht hab.

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.