L
L
lexa_gorchakov192018-09-23 17:34:03
MySQL
lexa_gorchakov19, 2018-09-23 17:34:03

How to display the first 3 rows from the database?

I have items in the database. How can I display only the first 3?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cheypnow, 2018-09-28
@lexa_gorchakov19

In MySQL this is done with the word LIMIT

SELECT column_name(s)
FROM table_name
WHERE condition
LIMIT 3;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question