By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
access_time 7 months ago comment 0 languageEnglish

In different databases, the syntax of selecting top N records are slightly different. They may also differ from ISO standards.

In SQL Server, use TOP (N) to retrieve the first N records in the table. Remember to replace N with one actual number.

Code snippet

SELECT TOP (N) * FROM TableName;
info Last modified by Raymond at 7 months ago

Please log in or register to comment. account_circle Log in person_add Register
comment Comments (0)
No comments yet.
account_circle Raymond

Code snippets for various programming languages/frameworks.

open_in_new View

local_offer Tags


info License/Terms