Learn how to use the Trim function for stripping repeating characters from the end of, or the beginning of, a string.
- [Instructor] Sometimes, especially when … you're dealing with input from users, … you need to remove spaces or other characters … from the beginning and/or end of a string. … This is what the TRIM function does. … For example, this first statement, … the TRIM function with a string … and its got spaces at the beginning … and spaces at the end of the string. … If I execute that, it will remove those spaces. … Unfortunately, in this environment … it's difficult to see what's actually happening … with the spaces and so I can execute these … and it's hard to tell. … LTRIM removes the spaces from the beginning … of the string but not from the end. … RTRIM removes the spaces from the end … of the string but not the beginning. … And then there's a version where you can specify … what character to remove, as opposed to spaces. … So in this case, this removes all of the period characters, … the dot characters from both ends of the string. … If I specify just LTRIM, you see it removes 'em … just from the left side, or the beginning. …
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.