L
L
LittleBob2022-03-23 01:29:27
Java
LittleBob, 2022-03-23 01:29:27

Is there any way to pre-populate the data into the SQLite database?

In the process of using the application, the user can create new tables in the database and change some values ​​there. Such a question: as an example, I want to make one table in advance with some data so that the user understands what it is. Is there any way to check this? So that the database already initially had a table and data in it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan, 2022-03-23
Hasanly @azerphoenix

Of course you can.
You can create some sql file and write your queries there. And when you start the application, import them.
Here are similar questions:
https://stackoverflow.com/questions/47466913/sqlit...
https://stackoverflow.com/questions/22890693/import...

V
Vasily Bannikov, 2022-03-23
@vabka

Well, you can create a file with the base yourself in advance and distribute it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question