The invention relates to a Chinese herbal medicine prescription code scanning query system, and can effectively solve the problem that existing Chinese herbal medicine prescription information is notclear and is difficult to perform standard management. The technical scheme is that the system includes Chinese herbal medicine two-dimensional codes, a pharmacy, a Chinese herbal medicine database, acomputer, electronic prescriptions, electronic prescription two-dimensional codes, a prescription database, a printer, a hand-held terminal and a wireless network, the Chinese herbal medicine two-dimensional codes are identification codes pasted on Chinese herbal medicine bags, the Chinese herbal medicine database in the pharmacy is connected with the computer, the computer is connected with electronic prescriptions, the electronic prescriptions are connected with the prescription database, the printer is connected with the electronic prescription two-dimensional codes, the prescription database is connected with the printer, the electronic prescription two-dimensional codes are connected with the hand-held terminal, and the hand-held terminal is in wireless communication connection withthe wireless network. On the basis of utilizing an existing system of a Chinese herbal medicine system to a greater extent, Chinese herbal medicines in the Chinese herbal medicine pharmacy can be efficiently managed, and the storage speed and accuracy of Chinese herbal medicines are improved.