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
More Related Contents:
- query sql between two tables [duplicate]
- How does database indexing work? [closed]
- SQL Server – Best way to get identity of inserted row?
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- Concatenate columns in Apache Spark DataFrame
- How to pass parameters to query?
- Passing multiple values for a single parameter in Reporting Services
- Fetch the row which has the Max value for a column
- Is the NOLOCK (Sql Server hint) bad practice?
- Creating table names that are reserved words/keywords in MS SQL Server [closed]
- SQL: find missing IDs in a table
- Pass table as parameter into sql server UDF
- SQL to generate a list of numbers from 1 to 100
- SQL WHERE ID IN (id1, id2, …, idn)
- Aggregate function in SQL WHERE-Clause
- Fastest way to determine if record exists
- Group by date only on a Datetime column
- Error message: (provider: Shared Memory Provider, error: 0 – No process is on the other end of the pipe.)
- SQL – Query to get server’s IP address
- I keep getting the error “relation [TABLE] does not exist”
- How to concatenate many rows with same id in sql?
- Regular expression to match common SQL syntax?
- SQL server join tables and pivot
- SQL: How do you select only groups that do not contain a certain value?
- How do I compare 2 rows from the same table (SQL Server)?
- SELECT DISTINCT is slower than expected on my table in PostgreSQL
- Backup a single table with its data from a database in sql server 2008
- How to use SQL LIKE condition with multiple values in PostgreSQL?
- What is the meaning of SELECT … FOR XML PATH(‘ ‘),1,1)?
- When to use EXCEPT as opposed to NOT EXISTS in Transact SQL?