sqlite3 is chopping/cutting/truncating my text columns

后端 未结 5 1393
太阳男子
太阳男子 2020-12-30 20:47

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 name         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 21:20

    Here is another way to format several tables and show the rowid in a nice format.

    #/usr/bin/env bash
    
    cli_opts="-header"
    
    for table in "table1" "table2"; do
        select="select rowid as ' ', * from $table;"
        #echo "$select"
        echo "$table"
        sqlite3 $cli_opts database.db "$select" | column -t -s "|"
        echo -e '\n'
    done
    

提交回复
热议问题