T
T
Troodi Larson2021-10-01 11:33:43
PHP
Troodi Larson, 2021-10-01 11:33:43

An analogue of array_diff with a mysql query, how is it correct?

There are 2 tables, in one and in the second there are fields example_id.
One has 1000 entries, the other has 1200 entries. In fact, I need to make a conclusion using mysql similar to the function array_diff(table1.example_id, table2.example_id); Simply put, you can find the values ​​that are missing in the second table.
But it is not possible to make a request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-10-01
@troodi

LEFT JOIN, WHERE ... IS NULL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question