i want to create a new db of sqlite using A SHELL SCRIPT on an ubuntu10.10 OS....Any ideas??
I tried 'create.sh' file with following code...
#!/bin/bash
sqlite ex3.db
create table t1(f1 integer primary key,f2 text)
than run a ./create.sh from termminal but it leads me to sqlite> prompt...I dont see created DB ex3 anywhere..
Please help ...
Example of
CREATE
andINSERT
ofcreate.sh
:Can you use the param -line on sqlite3, for example:
should work I think, unfortunately, not able to check right now.
You want to feed your SQL DDL commands to SQLite through the standard input:
One more way to accomplish this can be using SQL_ENTRY_TAG_N
see snippet for details