Difference between revisions of "LEFT/de"

From SQLZOO
Jump to: navigation, search
(Created page with "Category:Deutsch <table align='right' border='1'> <caption>Kompatibilität</caption> <tr><th colspan='3'>LEFT(s,i)</th></tr> <tr><td align='center'>'''DBMS'''</td><td alig...")
 
 
Line 15: Line 15:
 
<p></p>  
 
<p></p>  
 
<pre style='width:60ex'>
 
<pre style='width:60ex'>
   LEFT('Hello world', 4) -> 'Hell'     
+
   LEFT('Hallo Welt', 4) -> 'Hall'     
 
</pre>
 
</pre>
  

Latest revision as of 12:54, 28 October 2012

Kompatibilität
LEFT(s,i)
DBMSOKAlternative
IngresJa
MySQLJa
OracleNein SUBSTR(s, 1, i)
PostgreSQLNein SUBSTRING(s, 1, i)
SQL ServerJa

LEFT

LEFT(s,n) liefert n Zeichen aus der Zeichenkette s, beginnend vom Anfang der Zeichenkette.

   LEFT('Hallo Welt', 4) -> 'Hall'     
SELECT name,
       SUBSTRING(name, 1, 3)
  FROM bbc
SELECT name,
       SUBSTR(name, 1, 3)
  FROM bbc
SELECT name,
       LEFT(name, 3)
  FROM bbc

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense