Difference between JDBC and JSON [closed]

0

My purpose is to connect to a remote data base (MySQL) from Android, make queries, create tables and those basic things.

What is the difference between making a connection using the Java JDBC, and using PHP JSON or something like that? (Excuse the ignorance).

Thanks in advance.

    
asked by Pablo Palma 26.03.2017 в 03:47
source

1 answer

3

It is much more recommendable to use web services (restful or soap) and generally in question to mobile applications these services are mostly used and very rare to make a direct connection between the app and remote db.

and what is the difference:

Java JDBC : Make a direct connection to your database from app to database.

Web Service : Make a request to your created service and return the requested information without having direct access to the database, the connection or the query to the database of the information that you requested your service.

    
answered by 26.03.2017 / 05:43
source