RIGHT/de

From SQLZOO
Jump to navigation Jump to 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('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

Language:Project:Language policy [[:{{#invoke:String|sub|RIGHT/de
 |1
 |Expression error: Unrecognized punctuation character "{".
}}|English]]
DataWars, Data Science Practice Projects - LogoDataWars: Practice Data Science/Analysis with +100 Real Life Projects