shell - run command line sqlite3 query and exit -
we can use -cmd
option sqlite3
run query, sqlite3
opens database , waits in there interactive input. how can run query on sqlite3
command line , exit?
thanks,
just include command in quotes after database file argument.
for example, following creates table called abc
:
sqlite3 test.db 'create table abc (col0 int)'
Comments
Post a Comment