The multi-database query is performed using a SELECT statement. Specific databases are identified in the query by using their catalog names.