RIGHT/de

From SQLZOO
< RIGHT
Revision as of 20:44, 22 October 2012 by Peter (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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('Hello world', 4) -> 'orld'      
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