A

Admin • 833K Points
Coach

Q. What does the following SQL do?

Code:
SELECT * FROM customers LIMIT 5;
  • (A) Fetches all records
  • (B) Fetches last 5 records
  • (C) Fetches first 5 records
  • (D) Fetches records from 5th row
  • Correct Answer - Option(C)
  • Views: 17
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

The `LIMIT 5` clause restricts the output to the first 5 rows.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.