0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SQL 行数指定

Last updated at Posted at 2021-07-20

MySQL

LIMIT句
取得行数の上限を設定

SELECT column_name FROM table_name LIMIT number

SQL Server

TOP句
先頭から指定した行数を取得

SELECT TOP (number) column_name FROM table_name;

Oracle

ROWNUM句
number1からnumber2行目を取得

SELECT column_name
FROM table_name
WHERE ROWNUM BETWEEN number1 AND number2;
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?