How do I select only the first 10 results of a query?
I would like to display only the first 10 results from the following query:
SELECT a.names,
In SQL server, use:
select top 10 ...
e.g.
select top 100 * from myTable select top 100 colA, colB from myTable
In MySQL, use:
select ... order by num desc limit 10