V
V
vadimstroganov2015-07-23 23:01:11
SQL
vadimstroganov, 2015-07-23 23:01:11

How to make a selection from two similar tables?

Hello!
There are two tables that are completely identical in structure, for example, each table contains: id, name, year, color, type
And let's say that there are 5 records in each table.
We need to simultaneously display data from two tables, that is, in the end we should get 10 Records
Tell me how to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maximw, 2015-07-23
@vadimstroganov

See this:
https://ru.wikipedia.org/wiki/Union_%28SQL%29
Applicable to MySQL
www.mysql.ru/docs/man/UNION.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question