Learn SQL
Using LENGTH
25.1
Lesson

Selecting LENGTH

Let’s say we want to select the length of the names of students along with their names.

SQL has a LENGTH function which can be used for this.

LENGTH can also be used on number or integer columns in addition to string columns.