Select Literal in SQL

Level 115 keystrokes

SELECT with a string literal returns that string as a result.

SQL code

-- SELECT without FROM returns the value of the expression
-- Strings use single quotes; the result is one row containing Hello
1SELECT 'Hello';

Output

+-------+
| Hello |
+-------+
| Hello |
+-------+
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.

  • '× 2
  • ;× 1

More SQL examples at level 1

← SQL typing practice