First, every SQL statement must end with a semicolon.
create table setting (id integer primary key, status text);
insert into setting values (1, 'new');
-, "test2.sql" , .read . , .
$ sqlite3 test.db
SQLite version 3.8.7.2 2014-11-18 20:57:56
Enter ".help" for usage hints.
sqlite> .read "test2.sql"
sqlite> .headers on
sqlite> .mode columns
sqlite> select * from setting;
id status
---------- ----------
1 new
. , . users/name/test2.sql . /. ( POSIX /; HFS :.) , (?) : /users/name/test2.sql /users/name/test2.sql .
. , SQL , .
$ rm test.db
$ sqlite3 test.db < "test2.sql"
$ sqlite3 test.db
SQLite version 3.8.7.2 2014-11-18 20:57:56
Enter ".help" for usage hints.
sqlite> .headers on
sqlite> .mode columns
sqlite> select * from setting;
id status
---------- ----------
1 new
, SQL.
$ ls -l "test2.sql"
-rw-rw-r-- 1 mike mike 118 Jan 15 09:28 test2.sql
, .