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.

PostgreSQL

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich hoffe ihr könnt mir helfen. Aber Erstmal danke schonmal für die Hilfe.

Ich habe eine Funktion "Formatdate" die 2 parameter bekommt.

1. Das Datum aus einer Zelle

2. YYYY(JAHR) , MM(MONAT) oder YYYYMM(JAHRMONAT)

Sie liest dann aus dem Datum halt dann das Jahr, monat oder jahrmonat und gibts zurück.


CREATE OR REPLACE FUNCTION formatdate(datum varchar, str varchar)


  RETURNS varchar AS


$BODY$

DECLARE out VARCHAR;


BEGIN


   IF str = 'YYYY' THEN 

   out = to_char (datum, 'YYYY')

   .........

   END IF;


END

$BODY$

  LANGUAGE 'plpgsql' VOLATILE

  COST 1;


Die Funktion funktioniert so nicht aus irgendeinem grund den ich nicht kenne.

Danke für die Antwort, aber es lag nicht daran. Ich hatte 2 semikolon vergessen gehabt und meinen 2. befehl kannte der nicht.

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.