0

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

SELECT TOP 3 * FROM Customers;
rahulfaujdar
  • 289
  • 3
  • 10

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
  • 200,744
  • 21
  • 223
  • 248