1

I have a sqlite database in sqlite manager. I would like to create DB schema. How can i do that? Or is it best to use some software to create the DB Schema?

Need some suggestions and guidance.

1
  • DBSchema is a tool to be used for this Commented Jun 23, 2016 at 9:05

3 Answers 3

3

there is a system table called sqlite_master. It contains the SQL CREATE statements for all objects.

So, all you need to do is to select all rows from this table, and run the sql statements.

You can also use Database->Export Database Structure, which will effectiveley do the same thing

Sign up to request clarification or add additional context in comments.

8 Comments

it saves the file with an extension sql. I want to look at it. How do i do that?
is it a joke? Just open it with a notepad
this is not i want... i want a graphical form of the database where it shows the relationships between the tables
OK, we misunderstood you. You want a picture. You can use Visio for that. It draws nice pictures. Just connect to your sqlite database using an ODBC connector and Visio will do its magic
I am using mac.. download visio for mac?
|
1

there is only one database in SQLite for file.

probably you can create a new file and open that with sqlite manager.

1 Comment

no.. i want to get the schema from the manager itself. is it possible?
1

certainly you can go to Database menu + create new Database

http://code.google.com/p/sqlite-manager/wiki/CommonTasks

1 Comment

if you are talking about this sqlabs.net/sqlitemanager.php then the option of crating a new database in the startup wizard itself

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.