May 2020
Beginner
564 pages
14h 9m
English
A literal value is a constant value such as a string, a number, or a NULL value.
The following query shows an example of different literal values in a SELECT statement:
SELECT 'string', 1, 1.23, NULL;
The previous query has four literals: a string, a number, a floating-point or decimal number, and a NULL. The following screenshot shows the results:
As you can see in the previous screenshot, the column names are the values used in the query—that is, the column heading for string is string, 1 is 1, and so on. If you want to name them differently, you can use aliases (covered in more detail in chapter 7, Querying Multiple Tables ...
Read now
Unlock full access