+(dates)/de

From SQLZOO
< +(dates)
Revision as of 08:48, 6 September 2012 by Peter (Talk | contribs) (Created page with "Category:Deutsch <table align='right' border='1'> <caption>Kompatibilität</caption> <tr><th colspan='3'>d + i</th></tr> <tr><td align='center'>'''DBMS'''</td><td align='c...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kompatibilität
d + i
DBMSOKAlternative
IngresNeinwhn + date('7 day')
MySQLJa
OracleJa
PostgreSQLNeind+ INTERVAL 'i DAY'
SQL ServerJa

+ (dates)

d + i liefert ein Datum, das i Tage nach dem Datum d liegt.

 DATE '2006-05-20' + 7  -> DATE '2006-05-27'  
schema:gisq

Im Beispiel wird ein Datum 7 Tage nach dem Datumswert in whn ermittelt.

SELECT whn, whn + DATE('7 day')
  FROM eclipse
SELECT whn, whn+INTERVAL 7 DAY
  FROM eclipse
SELECT whn, whn+7 
  FROM gisq.eclipse
SELECT whn, whn+7 
  FROM eclipse
Sprache: English  • Deutsch