P
P
pavlusha12018-05-15 08:35:30
PostgreSQL
pavlusha1, 2018-05-15 08:35:30

How to get the maximum element from a table in Postgres?

In mySQL, you can make a query like "SELECT MAX(id) FROM table1;" is there any equivalent in PostgreSQL?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-05-15
@pavlusha1

This is standard SQL, and all RDBMS support it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question