The invention discloses a data storage and query method for compound fields. The method comprises the following steps of: 1, data storage: storing multiple data in a data table meeting requirements of the third normal form, wherein all storage recordings comprise field names, specific values and serial numbers of major keys; when the compound fields are stored, adding attributes of query quantityfields and the compound fields, related to the serial numbers of the major keys; 2, data query: when the compound fields are queried, for every storage recording, firstly reading query quantity n in the query quantity fields; in the query process, counting the name information quantity m of fields meeting query requirements, and completing the query process of one storage recording when m is not less than n; and then, continuing to perform query till all data tables are queried. The storage and query method has the advantages of reasonable design, convenience for storage and query, small dataprocessing quantity and high query efficiency; and by the adoption of the storage and query method, the problems of low query efficiency, long query time, low search speed, low search efficiency and the like, existing in compound field query, can be solved.