Use =>
1 row_number() OVER ()
to print row number for all records
2 -t
removes header and footer
See example below
I have a table users
in my database
Fetching 5 records from users
table
removing column names with -t
option
adding row number using row_number
function in all records fetched (with -t without -t)