V
V
Vanes Ri_Lax2015-09-16 10:38:04
Java
Vanes Ri_Lax, 2015-09-16 10:38:04

Is it possible to make a selection from a table that was created in another application?

Hello, I have a question. For example, I wrote an application that creates a table in the database and writes some values ​​\u200b\u200bto it, is it possible to somehow make the second application read this data?
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2015-09-16
@aol-nnov

ContentProvider you want.

A
Alexey Cheremisin, 2015-09-16
@leahch

Of course you can! Moreover, very often they do this, which of course is not very correct.
1. It is necessary to monitor caching and imply that it can be in any application, otherwise you can get invalid data.
2. It is better to write to the database only from one application, the rest read, otherwise P1.
3. Actually, it's not very good to do this, because of the possibility of losing data consistency if several applications write at the same time.
4. It is very difficult to maintain changes in the code and in the structure of the database, when changes in one application automatically affect all the others.
How to do it right?
For the data, a wrapper (application) of the web service type is written, through which everyone works with the database and its data! Or the application itself implements the web service. json - rules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question