RIGHT(str,len)
Returns the rightmost len
characters from the string str
, or NULL if any argument is NULL.
SELECT RIGHT('MariaDB', 2); +---------------------+ | RIGHT('MariaDB', 2) | +---------------------+ | DB | +---------------------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/right/