G
G
GeKskill2018-10-24 17:06:56
PHP
GeKskill, 2018-10-24 17:06:56

Data extraction. 3NF. php?

Something I can't google... How to efficiently pull data from related tables? So far, this is the only way: knowing the entity_ID from the main table, we make a query with WHERE? for its table, and then, using PHP, we scatter the array into variables? Now we need to make a user's personal account with registration and viewing of already created orders, but I practically did not encounter databases.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abdula Magomedov, 2018-10-24
@GeKskill

Read about Joins

select from "основная таблица" от
  inner join "связанная таблица" ст on ст.relation_id = от.id
where <другие условия>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question