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 - Oracle Database Tutorial
From the course: Oracle Database 12c: Basic SQL
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Introduction to functions1m 39s
-
Using SUBSTRING, LENGTH, and CONCAT2m 50s
-
Using LENGTH1m 4s
-
Using CONCAT4m 48s
-
Using LOWER and UPPER2m 44s
-
Using INSTR4m 32s
-
Using RPAD and LPAD3m 31s
-
Using TO_CHAR to convert numbers1m 34s
-
Using TO_CHAR to format DATE values2m 59s
-
Using TO_CHAR to filter DATE values1m 57s
-
The special Oracle DUAL table1m 18s
-
Using ROUND1m 15s
-
Using TRUNC1m 36s
-
Using SYSDATE1m 59s
-
Using SYSTIMESTAMP1m 37s
-
Using MONTHS_BETWEEN3m 2s
-
Using ADD_MONTHS1m 17s
-
-
-
-
-
-