Select Number in SQL

Level 110 keystrokes

SELECT with a numeric literal returns that number as a result.

SQL code

-- Numeric literals are written without quotes
-- Returns one row with the number 42
1SELECT 42;

Output

+----+
| 42 |
+----+
| 42 |
+----+
1 row in set
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this SQL code and how often they appear.

  • ;× 1

More SQL examples at level 1

← SQL typing practice