C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL RIGHT() FunctionThe Right() is a String function of MySQL. This method returns allows you to extract a substring from a string, starting from the right side of the string. Syntax
select right(str, len); Parameters
Str: string to be extracted. Len: length of character to be extracted. Returns
This function will return the string if the number of character exceeds the length of the string. Example 1
Select right('TheDeveloperBlog', 5);
Output:
Example 2
Select right('mysql', 3);
Output:
Next TopicMySQL String
|