
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can it be possible to invert a string in MySQL?
MySQL REVERSE() function make it possible to invert a string. Its syntax is as follows −
Syntax
REVERSE(STR)
Here, STR is a string which we want to invert.
Example
mysql> Select REVERSE('MySQL'); +------------------+ | REVERSE('MySQL') | +------------------+ | LQSyM | +------------------+ 1 row in set (0.05 sec)
- Related Articles
- How it is possible in MySQL to find a string of specified pattern within another string?
- How can it be possible to add 3 months interval in a MySQL date without using the word ‘Months’ with interval?
- In MySQL, how it can be possible to specify a sort order using a column that is not retrieved by the query?
- How to invert case for all letters in a string in Python?
- How is it possible in MySQL to find the location of the first occurrence of a substring in a string?
- How many digits should be there in string or number so that it can be specified as a date value by MySQL?
- Can we select row by DATEPART() in MySQL? Is it possible?
- Is it possible to calculate a correlation in a MySQL query?
- How is it possible for a MySQL trigger to execute multiple statements?
- How can I get enum possible values in a MySQL database?
- Is it possible to have a function-based index in MySQL?
- All possible strings of any length that can be formed from a given string?
- How is it possible to enter multiple MySQL statements on a single line?
- Is it possible to synchronize the string type in Java?
- In MySQL, how can we pad a string with another string?

Advertisements