This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13989|Reply: 0

[Source] The use of union all in Oracle

[Copy link]
Posted on 2/16/2017 1:45:21 PM | | | |

The purpose of the UNION directive is to merge the results of two SQL statements, so that you can view the results of the query you want.

Note: In union usage, the field types of the two select statements match and the number of fields must be the same

If I want to query two tables, and the structure of the two tables is different, can I use union all???

Actually, of course!!!

The SQL statement is as follows:






Previous:Visual Studio cannot load its own development plugins
Next:C# Factory Schema Code Generator Source Code
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com