Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

databases

The set of databases referenced in a query.

Syntax

  DATABASES

Returns

Returns a set of all databases that are referenced in the query.

Usage Notes

  • The comparison to a DATABASES should be a quoted or unquoted identifier. This is not a string.

Examples

DATABASES CONTAINS null

DATABASES CONTAINS ANY ("DB1", "DB2")

DATABASES CONTAINS ALL ("DB1", "DB2")