SELECT clause in SQLite using expressions
In the SELECT statement, only the SELECT clause can be written without the FROM clause. These lists of expressions will be evaluated one at a time, producing a single row, and then forming a worksheet. This is useful for testing and evaluating independent expressions. For example, the following SQL statement uses only the SELECT clause in the SELECT statement:
SELECT 1+1,6.68,'Hello'
Run the program, and the execution effect is shown in Figure 3.7.
Figure 3.7 Running effect