Mysql LEFT() function

MySQL LEFT() Function

Example

Extract 3 characters from a string (starting from left):
SELECT LEFT("SQL Tutorial"3AS ExtractString;
Try it Yourself »

Definition and Usage

The LEFT() function extracts a number of characters from a string (starting from left).
Tip: Also look at the RIGHT() function.

Syntax

LEFT(stringnumber_of_chars)

Comments

Popular posts from this blog

Lab Network 2024

Step to publish your static html web page to GitHub

Tutorial OOP(reversion java)