How do you use literal strings in SQL? How do you concatenate strings? What are some common string functions? Learn the answers to these questions in this video.
- [Instructor] SQL has a number of operators and functions for dealing with strings. In standard SQL a literal string is represented by a series of characters inclosed in single quote marks. Keep in mind that there are some data base systems notably older versions versions of MySQL where double quote marks maybe used instead this is not standard but it is very common so its worth knowing about. If you need to use a single quote in your string you use two single quotes to represent the one. Notice the two single quotes in the word here''s in the example. String handling tends to be platform specific in SQL. A simple thing like concatenating two strings together can be very different on different platforms. Standard SQL can provides concatenation operator SQL lLte, post SQL and many other systems support this standard. MySQL uses a function. Microsoft SQL uses a non standard operator. String function also very from system to system. There are really just a few string functions that are considered standard and even these are not supported or are different on different systems. SQL lite supports these functions as close to the standard as possible. In the rest of this chapter Ill cover some of the more common standard and non standard string functions as implemented by SQL Lite. You'll need to consult your documentation for your system to find out how these other string functions are implemented in your system.
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.