Answer the question
In order to leave comments, you need to log in
How to dynamically add a table in Sqlite?
Good afternoon.
Please tell me how to dynamically add a new table in Java and SQlite.
For example, when creating an application, a database is created, it contains 2 tables with a category of goods. It becomes necessary to add another table, but this is done by the user, He writes the name of the table in Cyrillic, but it is not possible to translate it into transit, because instead of Cyrillic it may turn out to be, for example, Spanish.
There seems to be only one option so far, to create a separate table to store table names. For example, three fields ID, number, name. And in it already store the number-category, and before creating a new table, initially enter data into it, or is it better and more convenient to store data about the new table in SharedPreferences?
Please advise how to solve this problem.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question