Running a Sqlite3 Script from Command Line

后端 未结 4 1446
孤街浪徒
孤街浪徒 2020-12-29 05:12

I am writing a shell script to scp a project and part of it involves transferring some important tables in my database.

I have the following stored in the file

4条回答
  •  梦毁少年i
    2020-12-29 05:37

    You can get a list of the spatial tables as follows:

    echo "SELECT f_table_name FROM geometry_columns;" | spatialite -noheader -silent your_db.sqlite

提交回复
热议问题