SELECT - SQL Command - UNION Clause

The UNION clause combines the results from two or more SQL SELECT statements into a single result set containing rows from all the queries in the UNION operation.

NoteNote

When one of the columns is of Memo, General, or Blob type, performing unions of differing column types is not allowed.

For the complete syntax, see SELECT - SQL Command.

The detailed syntax for the UNION clause is as follows:

[UNION [ALL] SELECTCommand] 

Parameters

[UNION [ALL] SELECTCommand]

Specifies another SELECT statement. By default, UNION eliminates duplicate rows from the combined result set.

NoteNote

The ALL keyword includes duplicate rows in the combined result set.

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic