1. A method for querying a database in which a query statement is issued to a database management system for which a data type can be defined and query results are acquired, said method comprising the steps of: selecting at least one of query components used to assist queries to the database based on input information; generating at least one of templates for activating said selected at least one of query components, said templates including a query editing template, a query condition entry template and a search result template; generating and displaying a page for editing a query based on said generated query editing template; generating and displaying a page for inputting a search condition based on said generated query condition entry template; and generating and displaying a page for displaying a search result based on said generated search result template.