KnowledgeBoat Logo

Informatics Practices

What will be returned by the given query ?

SELECT concat("It", "was", "ok");
  1. "It was ok"
  2. "It wasok"
  3. "Itwasok"
  4. "Itwas ok"

SQL Queries

2 Likes

Answer

"Itwasok"

Reason — The CONCAT() function in MySQL is used to concatenate multiple strings into a single string. When we use SELECT CONCAT("It", "was", "ok");, it combines the strings "It", "was", and "ok" without any spaces or additional characters between them.

Answered By

1 Like


Related Questions