Class TSelectSqlStatement

All Implemented Interfaces:
IRelation, Visitable, Iterator<TSourceToken>
Direct Known Subclasses:
THiveFromQuery

Class TSelectSqlStatement represents query specification, query expression and select statement.

query specification including following clause: In some databases, query specification also known as sub-select.

query expression including all elements in query specification and following clause: In some databases, query expression also known as full-select.
It is a component of the select-statement, the INSERT statement, and the CREATE VIEW statement. And a full-select that is enclosed in parentheses is sometimes called a sub-query.

select statement including all elements in query expression and following clause: Lots of clauses on this level are db vendors specific.

Use isCombinedQuery() to check whether UNION, EXCEPT and INTERSECT operators is used. If returns true, use getLeftStmt() and getRightStmt() to get query expression. You need to check isCombinedQuery() recursively, all clauses of TSelectSqlStatement only available when this function returns false.