1. A database management system having the function of accessing one or more external databases, comprising: a means for specifying whether functions in a query are executed in external databases; and a means for determining whether data referred to in a query is confined to one external database, wherein, when a user's query is confined to said one external database and the user specifies execution in said external database, said query is processed in said external database.