Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create script from existing database in SQLite 3 [closed]

Tags:

sql

sqlite

Do you know any way to create sql script from existing database in SQLite 3?

like image 487
Piotr Wdowiak Avatar asked Oct 08 '14 06:10

Piotr Wdowiak


People also ask

Which command is used to create or open an existing database in SQLite?

In SQLite, sqlite3 command is used to create a new SQLite database. You do not need to have any special privilege to create a database.

How do I run a SQLite script in terminal?

Open a command prompt (cmd.exe) and 'cd' to the folder location of the SQL_SAFI. sqlite database file. run the command 'sqlite3' This should open the SQLite shell and present a screen similar to that below.

Which SQLite command is used to modify existing information?

ALTER: It is used to modify an existing database object like a table.


1 Answers

I need to create tables and insert script.

You can use the sqlite3 command line tool and use .dump to output the SQL that creates the database schema and inserts the data there.

like image 98
laalto Avatar answered Sep 21 '22 17:09

laalto