The purpose of the present application is to provide a method and device for establishing a lung image database. The method includes: acquiring lung image data of a user, and establishing a related data table of the lung image data; determining a right management data table, wherein the right management data table includes a right data table, a node data table, a role data table, and a user role intermediate data table; determining whether the user's query request is legal according to the right management data table, querying the related data table according a preset query method so as to determine a query result corresponding to the user's query request if so, and displaying the query result on a page; and updating the related data table of the lung image data according to an operation on the query result on the page. Therefore, the data in different relational tables can be obtained at the same time by inputting the query condition once, the comparison is enhanced, the query workload is reduced, and the query and analysis time is saved.