Learn how to locate the position of a specific character in a literal string using the INSTR function.
- [Instructor] Oracle's instr function allows us…to locate the position of a specific character…inside a string.…So for example, let's select…all data from our employees table.…And let's refine our query…so that we will only display the first name,…last name, as well as the phone number,…for all of our employees.…So I can type first_name, last_name, and phone_number.…
Using instr, I can detect the position…of a specific literal value inside a string.…So for example, let's use the instr function…with the phone_number column.…This is a varchar column in our table.…So we'll type:…instr, brackets.…The column name, phone_number, in our case, comma…and the string value, or literal value,…we want to search for inside the column.…
So for example, let's search for the 650 area code,…and we can close the function brackets.…By typing instr, followed by the phone_number column,…comma 650, Oracle will return us the position…of the 650 literal string…inside of the phone number value…for all rows in the table.…Executing this query, we see that for many employees,…
Note: This training course is appropriate for beginning database developers with no prior experience with SQL or Oracle.
- Using Oracle SQL*Developer, the free development environment
- Selecting data from tables
- Filtering data
- Using functions to manipulate data
- Joining data from tables
- Creating tables
- Updating values
- Truncating data
- Grouping and ordering result sets
- Working with primary keys
- Checking constraints
Skill Level Beginner
Oracle 12c Database: Administrationwith David Yahalom3h 58m Beginner
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Database Foundations: Administrationwith Adam Wilbert1h 14m Beginner
Learning Relational Databases (2014)with Adam Wilbert2h 39m Beginner
1. Introduction to SQL
2. Preparing the Course Environment
Downloading the course VM2m 16s
3. Using Oracle SQL Developer
4. Basic SELECT Queries
5. String, Number, and Date Functions
6. Joining Table Data
7. Manipulating Data
8. Grouping Data
9. Advanced Topics
Next steps1m 33s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.