SQL Server/T-SQL/String Functions/REVERSE

Материал из SQL эксперт
Перейти к: навигация, поиск

REVERSE(): reverses the characters in a string

1>
2> -- REVERSE(): reverses the characters in a string
3> SELECT REVERSE("aaabbb")
4> GO
------
bbbaaa
(1 rows affected)
1>



REVERSE: takes the string input, and reverses the order of the information

1> -- REVERSE: takes the string input, and reverses the order of the information.
2>
3> SELECT REVERSE("www.sqle.ru")
4> GO
--------------
moc.s2avaj.www
(1 rows affected)
1>