LABEL
Assigns a label to a statement in order to identify it for profiling and debugging.
LABEL hints are valid in the following statements:
DELETEINSERTMERGESELECTUPDATEUNION: Valid in theUNION's firstSELECTstatement. Vertica ignores labels in subsequentSELECTstatements.
Syntax
statement-name /*+ LABEL (label‑string) */
Arguments
| label‑string |
A string that is up to 128 octets long. If enclosed with single quotes, label‑string can contain embedded spaces. |
Examples
=> SELECT /*+ LABEL(MySelectQuery)*/ COUNT(*) FROM t;
=> INSERT /*+ LABEL('Yet Another Query')*/ INTO t VALUES(1);
See Also
Labeling Queries in the Administrator's Guide