database - How to create a DB file in sqlite3 using a .schema file -


our client has provided file named db.schema. there command can use run file create .db file in sqlite3? can without having type in queries mentioned in db.schema file?

please help! thanks!

if file contains sql commands in correct format, sqlite3 command-line tool, , run this:

sqlite3 mydatabase.db < db.schema 

many sqlite administration tools have functions import such file.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -