X
X
xFreaky2016-09-04 19:41:56
MySQL
xFreaky, 2016-09-04 19:41:56

How to properly organize the work of node.js and MySQL?

Guys, look, there is a table with countries, let's call it coutnry, in which we store
country_id
, there is also another country_info table.
The essence of the question is, how to correctly select id = information about this country on the node?
If there are articles in Russian, I will be glad.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2016-09-04
@Immortal_pony

Lyrical digression:
You will do selection by means of sql. It makes no difference which programming language and environment to use.
The code:

SELECT * 
FROM 
    `country`
    JOIN `country_info` ON (`country_info`.`country_id`=`country`.`id`)

Documentation in Russian

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question