There is no standard SQL function for finding sub-strings but all major systems provide the capability.
- [Instructor] The SQL standard does not include … a substring function, … but all the major database engines have something like this. … The name of the function may be different, … and there may be other variations, … but this is generally how it works. … Going to use the album database for this, … and we're going to start by … just showing you the substring function. … In SQLite, the substring function is named SUBSTR, … it's S-U-B-S-T-R. … The first argument is the string, … and the second argument is the starting position … for the substring. … So in this case, the starting position is six, … counting from one, two, three, four, five, six, … this should return the word string. … So, I'll go ahead and execute this … and you see we get the word string. … So we're getting everything in this literal string … from the six position to the end. … I can specify the number of characters to return, … and so if I put a three there, … then we'll just get three characters, … and you see we now just get STR. …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. A Simple CRUD Application
- 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.