0

Can I use the Top clause in the MYSQL instead of the Limit clause?

SELECT TOP 3 * FROM Customers;
rahulfaujdar
  • 317
  • 3
  • 12

1 Answers1

2

Whenever you're wondering if something is supported, the documentation can usually explain.

In this case TOP is not supported by the MySQL dialect. The MySQL way of expressing that is:

SELECT * FROM Customers LIMIT 3;

There is no simple alternative to the LIMIT clause.

tadman
  • 208,517
  • 23
  • 234
  • 262