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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -