From the course: Oracle Database 12c: Basic SQL

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Using LENGTH

Using LENGTH - Oracle Database Tutorial

From the course: Oracle Database 12c: Basic SQL

Start my 1-month free trial

Using LENGTH

- [Instructor] Using the length function, I can return the length of any particular string as part of my SQL query. So for example, let's select the first_name and last_name columns from the employees table. I can also add the length function to be part of my SQL output. So I can type length and inside brackets the column name. So for example, first_name. This will return the length that is how many characters make up the value in the first_name column. So five for Ellen. Six for Sundar. Five for David. And four for Amit. Adding length and the last_name column will return the same information for the last_name as well. So four for Abel. And six for Austin. And four again for Bell.

Contents