Javatpoint Logo
Javatpoint Logo

MySQL LPAD() Function

LPAD(str,len,padstr) is a Sring function of MySQL. This method returns string 'str' which is left padded to the given length.

Syntax

Example 1

Output:


MySQL String LPAD() Function

Example 2

Output:


MySQL String LPAD() Function
Next TopicMySQL String




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA