Javatpoint Logo
Javatpoint Logo

MySQL SUBSTR() Function

The substr() is a String function of MySQL. This function returns the substring from the given string.

Syntax

Parameter:

Str: Main string

Len: length for substring

Pos: position the start the substring from the given string.

Example 1

Output:


MySQL String SUBSTR() Function

Example 2

Output:


MySQL String SUBSTR() Function

Example 3

Output:


MySQL String SUBSTR() Function

Example 4

Output:


MySQL String SUBSTR() Function
Next TopicMySQL String





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA