Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i avoid skipping rows when i use select * from table?

I want to check if everything is on the table but using the command

select * from table_name

Some of the rows are skipped(skipping) because they are so many. How can i see them all?

like image 287
prof chaos Avatar asked Sep 01 '25 05:09

prof chaos


1 Answers

In psql it is possible to pipe the query output to a file:

=> \o 'query-result.txt'
=> select * from t;

Now open the file in your favorite text editor

A second \o will turn the output back to the terminal

like image 188
Clodoaldo Neto Avatar answered Sep 02 '25 18:09

Clodoaldo Neto