G
G
generate2020-06-21 12:08:56
MySQL
generate, 2020-06-21 12:08:56

How to display the last value from a database table?

There is a table it has Id it is called VID. It is necessary to display the last value of id, tell me how this can be done.
The table is called video id is called VID

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
ninja op op, 2020-06-21
@generate

SELECT `VID` FROM `video` ORDER BY `VID` DESC LIMIT 1

F
FanatPHP, 2020-06-21
@FanatPHP

How to display the last value from a database table?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question