Make SQL output look pretty in terminal

Here’s some commands to help make your sql output more readable in your command line:

output the name of each column

.header on

now we are in column mode, enabling us to run the next two .width commands

.mode column

adjusts and normalizes column width

.width auto

or

customize column width

.width <NUM1>, <NUM2>

Copyright Loving to Code 2025
Tech Nerd theme designed by Siteturner