views:

156

answers:

1

I have values being cut off and would like to display the full values.

Sqlite3 -column -header locations.dbs "
select n.namelist, f.state, t.state
from names n
left join locations l on l.id = n.id
left join statenames f on f.st = l.st
left join statenames t on t.st = l.stto
where n.timing > 200601 and count(n.timing)<=15"

Which gives me

name        From State   To State  
----------  -----------  ----------
Jack        Connecticut  Louisiana 
Jeff Danie  New Hampshi  New Hampsh

The names are being truncated down to 10 characters or the length of the first row of data, whichever is longer. How can I stop this from happening without making the columns larger than they have to be?

Thanks

+1  A: 

There doesn't appear to be a way to make it automatic, but you can use the .width command to manually specific the column widths.

See here and search for .width.

Blorgbeard
I know about .width and don't want to set these manually. I guess sometimes the answer is just "Can't be done". I'll probably start on a method to output to pipe deliminated, which won't truncate, and write another program to just expand that.
Dan