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.

[MAX(SAP)DB] Timestamps

Empfohlene Antworten

Hallo Zusammen,

ich versuche gerade eine Tablle mit einem Attribut als Timestamp anzulegen.

create table test (datum timestamp)

Bekomme aber immer folgenden Fehler:

* -3002: Invalid datatype SQLSTATE: 42000

Woran kann das liegen? Laut Referenz ist der Datentyp definiert.

Danke

also bei meiner sap 7.4.3.25 funktioniert dein statement perfekt.

create table test

(

datum timestamp

)

schau noch mal auf die schreibweise.

ansonsten lad dir mal die htmldoku der 7.4 version auf englisch runter, da sind die errorcodes genauer beschrieben.

allerdings ist das ding schweinelangsam

nächster versuch:

schreib mal dat_um TIMESTAMP

ich habs gelöst.

bei mir war der compatiblitätsmodus für Oracle drin und da gibts ja bekanntlich kein TIMESTAMP ....

ist dir zufällig eine analoge funktion bei Maxdb zu to_date unter Oracle bekannt um die Datumsausgabe zu formatieren.

Dieses teil hängt nämlich immer so lästige millisekunden dran.

Grüße

Original geschrieben von OracleFan

ich habs gelöst.

ist dir zufällig eine analoge funktion bei Maxdb zu to_date unter Oracle bekannt um die Datumsausgabe zu formatieren.

Prima.

mir ist nicht mal die to_date Funktion der Oracle bekannt, wenn du das mal näher ausführst, kann ich dir evtl helfen.

D_Z

ähm war falsche funktion

meinte die to_char:

funktioniert z.B. so:

select to_char(sysdate,'DD.MM.YYYY HH24:MI:SS') from dual;

gibt "27.01.2004 16:22:21" zurück

und

select to_char(sysdate,'DD.MON.YYYY HH:MI') from dual;

gibt "27.JAN.2004 04:23" zurück.

Also eine Formatierung des Datums.

Grüße

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.