- 1
what is the difference between an api and an sql queri?
I saw in google an api is a way to get data from the database , but if i use a form in html with queris in php i also can get the data
6 Réponses
+ 2
Jorge Corante
API is use to get stored information from database to anywhere. Actually when we make our product then we don't share our private data to anyone. But if someone wants data from our side then we make API and using that API anyone can get your data.
In PHP you also make database connection to get data from database using SQL queries.
So there is no difference between API and SQL queries. Actually when you make API, without using SQL queries you can't get data.
Edited:-
The last statement was in the sense of SQL queries in API and SQL queries in PHP. There is no difference both use for same purpose.
+ 1
Akib
If there is no similarity then there is no difference but you can say there is relation with API and SQL queries. API use to get data from database through server side to client side. So SQL queries play important role in API.
+ 1
Akib
I was saying in the perspective of SQL queries in API and SQL queries in PHP. There is no difference. Both use for same purpose.
0
API delivers a request for data, server fetches the data using a query.
0
You make less sense than Pied Piper.
- 1
There's no difference between API and SQL Queries? What do you mean?
This is not correct in any way or form.