The REVERSE string function returns a string in reverse order. This function does the same job in both MS SQL Server and MySQL. It has same name and syntax in both these databases
REVERSE ( string_expression )
select REVERSE('ABCDEF'); ----------------- FEDCBA
In MySQL the same function is also available with same name
REVERS( str_to_reverse )
mysql> select REVERSE('ABCDEF'); +-------------------+ | REVERSE('ABCDEF') | +-------------------+ | FEDCBA | +-------------------+ 1 row in set (0.00 sec) mysql>
Back to Converting Functions from MSSQL to MySQL