Difference between pages "Strings/de" and "CURRENT DATE/de"

From SQLZOO
< Strings(Difference between pages)
Jump to: navigation, search
 
(Created page with "Category:Deutsch <table align='right' border='1'> <caption>Kompatibilität</caption> <tr><th colspan='3'>CURRENT_DATE</th></tr> <tr><td align='center'>'''DBMS'''</td><td a...")
 
Line 2: Line 2:
 
<table align='right' border='1'>
 
<table align='right' border='1'>
 
<caption>Kompatibilität</caption>
 
<caption>Kompatibilität</caption>
<tr><th colspan='3'>s1 || s2</th></tr>
+
<tr><th colspan='3'>CURRENT_DATE</th></tr>
 
<tr><td align='center'>'''DBMS'''</td><td align='center'>'''OK'''</td><td align='center'>'''Alternative'''</td></tr>
 
<tr><td align='center'>'''DBMS'''</td><td align='center'>'''OK'''</td><td align='center'>'''Alternative'''</td></tr>
<tr><td align='left'>Ingres</td><td>Ja</td><td></td></tr>
+
<tr><td align='left'>Ingres</td><td>Ja</td><td>Mit DBD::Ingres muss CAST verwendet werden.</td></tr>
<tr><td align='left'>MySQL</td><td>Nein</td><td>[[CONCAT/de | CONCAT(s1,s2)]]</td></tr>
+
<tr><td align='left'>MySQL</td><td>Ja</td><td></td></tr>
 
<tr><td align='left'>Oracle</td><td>Ja</td><td></td></tr>
 
<tr><td align='left'>Oracle</td><td>Ja</td><td></td></tr>
 
<tr><td align='left'>PostgreSQL</td><td>Ja</td><td></td></tr>
 
<tr><td align='left'>PostgreSQL</td><td>Ja</td><td></td></tr>
<tr><td align='left'>SQL Server</td><td>Nein</td><td>s1 + s2</td></tr>
+
<tr><td align='left'>SQL Server</td><td>Nein</td><td>[[CURRENT_TIMESTAMP/de |CONVERT(CHAR(10),CURRENT_TIMESTAMP,126)]]</td></tr>
 
</table>
 
</table>
  
<h1>|| (Zeichenketten / Strings)</h1>
+
<h1>CURRENT_DATE</h1>
<p>Mittels || können mehrere Zeichenketten (Strings) zu einer Zeichenkette zusammengefügt werden.</p>
+
<p>CURRENT_DATE liefert das aktuelle Systemdatum.</p>
 +
<p></p>  
 
<pre style='width:60ex'>
 
<pre style='width:60ex'>
   s1 || s2   
+
   CURRENT_DATE -> '2006-12-31'
 
</pre>
 
</pre>
  
<div class='ht'>
+
<div class='ht'>  
 
+
<source lang='sql' class='def e-sqlserver'>
In diesem Beispiel werden die Region und der Name eines Landes zusammengefügt.
+
SELECT CURRENT_TIMESTAMP, whn
<source lang='sql' class='def e-mysql'>
+
   FROM eclipse
SELECT CONCAT(region,name)
+
   FROM bbc
+
 
</source>
 
</source>
<source lang='sql' class='def e-sqlserver'>
+
<source lang='sql' class='def e-oracle'>
SELECT region + name
+
SELECT CAST(CURRENT_DATE AS DATE),wk
   FROM bbc
+
   FROM gisq.totp
 
</source>
 
</source>
 
<source lang='sql' class='def'>
 
<source lang='sql' class='def'>
SELECT region || name
+
SELECT CAST(CURRENT_DATE AS DATE),wk
   FROM bbc
+
   FROM totp
 
</source>
 
</source>
 
</div>
 
</div>
Line 36: Line 35:
 
<p>Siehe auch</p>
 
<p>Siehe auch</p>
 
<ul>
 
<ul>
   <li>[[SUBSTRING/de | Funktion SUBSTRING]]</li>
+
   <li>[[CURRENT_TIMESTAMP/de | Funktion CURRENT_TIMESTAMP]]</li>
   <li>[[TRIM/de | Funktion TRIM]]</li>
+
   <li>[[%2B(dates)/de | Funktion +(date)]]</li>
 
</ul>
 
</ul>
  
 
{{Languages}}
 
{{Languages}}

Latest revision as of 17:41, 21 October 2012

Kompatibilität
CURRENT_DATE
DBMSOKAlternative
IngresJaMit DBD::Ingres muss CAST verwendet werden.
MySQLJa
OracleJa
PostgreSQLJa
SQL ServerNeinCONVERT(CHAR(10),CURRENT_TIMESTAMP,126)

CURRENT_DATE

CURRENT_DATE liefert das aktuelle Systemdatum.

   CURRENT_DATE -> '2006-12-31'
SELECT CURRENT_TIMESTAMP, whn
  FROM eclipse
SELECT CAST(CURRENT_DATE AS DATE),wk
  FROM gisq.totp
SELECT CAST(CURRENT_DATE AS DATE),wk
  FROM totp

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense