SELECT clause in SQLite using expressions

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325772531&siteId=291194637