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

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

What Are The Best Universities In The World?