String Concat in SQL

Level 124 keystrokes

CONCAT function joins two or more strings together.

SQL code

-- CONCAT joins its arguments into a single string
-- Returns 'AB'; CONCAT also accepts more than two arguments
1SELECT CONCAT('A', 'B');

Output

+------------------+
| CONCAT('A', 'B') |
+------------------+
| AB               |
+------------------+
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.

  • '× 4
  • ,× 1
  • ;× 1
  • (× 1
  • )× 1

More SQL examples at level 1

← SQL typing practice