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 Abfrage?

Empfohlene Antworten

Veröffentlicht

Hi Forum,

folgende SQL Abfrage funtzt net:

select Datum, Spalte2

from Tabelle

where Datum='01.06.2001';

Das Problem liegt daran das ich versuche einen String mit einem Datum zu vergleichen. Wie aber muß meine Abfrage denn lauten damit das ganze geht?

Hi,

mit der Anweisung (SET DATEFORMAT dmy) kannst du die Formatierung einstellen.

Standardmässig unterstützt der SQL-Server folgende Datumseingaben:

'28/5/1993'

'May 28, 1993'

'1993 MAY 28'

Probiers mal mit einem der Formate aus.

Viel Erfolg,

Matze

Original erstellt von Naberius:

<STRONG>Hi Forum,

folgende SQL Abfrage funtzt net:

select Datum, Spalte2

from Tabelle

where Datum='01.06.2001';

Das Problem liegt daran das ich versuche einen String mit einem Datum zu vergleichen. Wie aber muß meine Abfrage denn lauten damit das ganze geht?</STRONG>

Bei Oracle würd das so aussehen:

where Datum = to_char('01.06.2001','dd.mm.yyyy')

Access geht das irgendwie anders ...

Servus

Eva

PS: es kann sein daß im Datum noch eine Zeit abgespeichert wird die fangen wir meistens mit Trunc(Datum) auf!

[ 11. Juni 2001: Beitrag editiert von: Eva ]

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.