Topics
Security
Data formats
Text
Linux and network
Encoding and conversion
Where to start
First steps
15 stages · From system basics and command input to navigation, files, text, and pipelines.
Track map 11 tracks · 123 stages
Difficulty
New labs
Sections 183 articles
Command index 432
Popular
Web stack
Read the output
$ psql -XAt -d shop -c 'SELECT last_value FROM orders_id_seq' 6 $ psql -XAt -d shop_check -c 'SELECT last_value FROM orders_id_seq' 5 $ psql -XAt -d shop_check -c 'SELECT max(id) FROM orders' 6
duplicate key … Key (id)=(6) already exists
max(id)