A parallel execution method in a terminal database, comprising: selecting, by a terminal, a set of central processing units, CPUs, from multiple CPUs in the terminal based on a preset degree of parallelism, wherein the degree of parallelism is a quantity of threads executed in parallel; obtaining, by the terminal, a frequency of each selected CPU, and calculating a frequency proportion of the selected CPUs; dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs, and determining a data partition corresponding to each selected CPU; and querying in parallel, by the terminal, using individual selected CPUs data in the corresponding data partition; wherein the data table is a data table in a B-tree format or a data table in a heap format; and wherein the dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs comprises: reading, by the terminal, a quantity of layer-1 subpages that are in the data table and that are connected to an index root page; and dividing the layer-1 subpages into N data partitions according to the frequency proportion of the selected CPUs, wherein N is the preset degree of parallelism; or wherein the dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs comprises: reading, by the terminal, a quantity of data recorded in each subpage in layer-1 subpages that are in the data table and that are connected to an index root page; and dividing, based on the quantity of data recorded in each subpage and according to the frequency proportion of the selected CPUs, data recorded in the layer-1 subpages into N data partitions, wherein N is the preset degree of parallelism; and wherein a quantity proportion of the data recorded in the layer-1 subpages in the N data partitions is equal to or approximately equal to the frequency proportion of the selected CPUs. selecting, by a terminal, a set of central processing units, CPUs, from multiple CPUs in the terminal based on a preset degree of parallelism, wherein the degree of parallelism is a quantity of threads executed in parallel; obtaining, by the terminal, a frequency of each selected CPU, and calculating a frequency proportion of the selected CPUs; dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs, and determining a data partition corresponding to each selected CPU; and querying in parallel, by the terminal, using individual selected CPUs data in the corresponding data partition; wherein the data table is a data table in a B-tree format or a data table in a heap format; and wherein the dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs comprises: reading, by the terminal, a quantity of layer-1 subpages that are in the data table and that are connected to an index root page; and dividing the layer-1 subpages into N data partitions according to the frequency proportion of the selected CPUs, wherein N is the preset degree of parallelism; or wherein the dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the selected CPUs comprises: reading, by the terminal, a quantity of data recorded in each subpage in layer-1 subpages that are in the data table and that are connected to an index root page; and dividing, based on the quantity of data recorded in each subpage and according to the frequency proportion of the selected CPUs, data recorded in the layer-1 subpages into N data partitions, wherein N is the preset degree of parallelism; and wherein a quantity proportion of the data recorded in the layer-1 subpages in the N data partitions is equal to or approximately equal to the frequency proportion of the selected CPUs.