Difference between revisions of "RIGHT/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'>RIGHT(s,i)</th></tr> <tr><td align='center'>'''DBMS'''</td><td ali...")
 
 
Line 15: Line 15:
 
<p></p>  
 
<p></p>  
 
<pre style='width:60ex'>
 
<pre style='width:60ex'>
   RIGHT('Hello world', 4) -> 'orld'       
+
   RIGHT('Hallo Welt', 4) -> 'Welt'       
 
</pre>
 
</pre>
  

Latest revision as of 12:55, 28 October 2012

Kompatibilität
RIGHT(s,i)
DBMSOKAlternative
IngresJa
MySQLJa
OracleNein SUBSTR(s, -i)
PostgreSQLNein SUBSTRING(s , 1+LENGTH(s)-i , i)
SQL ServerJa

RIGHT

RIGHT(s,n) liefert n Zeichen aus der Zeichenkette s, beginnend vom Ende der Zeichenkette.

   RIGHT('Hallo Welt', 4) -> 'Welt'      
SELECT name,
       SUBSTRING(name, 1+LENGTH(name)-3, 3)
  FROM bbc
SELECT name,
       SUBSTR(name, -3)
  FROM bbc
SELECT name,
       RIGHT(name, 3)
  FROM bbc

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense