F
F
fvg2015-04-08 10:46:13
MySQL
fvg, 2015-04-08 10:46:13

How to optimize a MySQL query?

There are 2 tables: A and B
A - 80,000,000 records
B - 10,000,000 records
Both have an id primary key.
Table B has a link to A (a_id). This reference can be null (NULL)
How to select ALL records from A and any row from B where the reference is not null?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fadmin, 2015-04-09
@Fadmin

left join

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question