Abdominal pain lasting for three hours is considered to be related to functional dyspepsia, chronic gastritis, irritable bowel syndrome, gastric cancer and so on, and the patient can follow the doctor’s advice to use drugs or surgical treatment. 1. Functional dyspepsia: Usually, patients can use Hâ‚‚ receptor antagonists such as Famotidine and Ranitidine, and proton pump inhibitors such as Omeprazole and Rabeprazole to inhibit the secretion of gastric acid, so as to relieve the symptoms of abdominal pain. Some patients can also be prescribed with domperidone, mosapride and other drugs to promote gastrointestinal dynamics, as well as multienzyme tablets, pancreatic enzyme tablets and other digestive enzyme preparations. 2. Chronic gastritis: patients can follow the doctor’s instructions with aluminum thioglycollate, magnesium aluminum carbonate and other gastric mucosal protective agents, itopride, mosapride and other gastrointestinal dynamics, pantoprazole, cimetidine and other acid suppression drugs. Some patients can also use digestive enzyme preparations to relieve the disease caused by bloating, loss of appetite and other symptoms, such as digestive enzyme tablets, multi-enzyme tablets. 3. Irritable bowel syndrome: abdominal pain can be prescribed with scopolamine, mebeverine, pivoxyl bromide and other antispasmodic agents to relieve. In case of diarrhea, loperamide and difenocoumarol can be used to stop diarrhea, and in case of constipation, lactulose and sorbitol can be used as laxatives, and bifidobacteria, lactobacillus and other micro-ecological agents can be used to correct the imbalance of intestinal flora and to promote the recovery of health of the organism. 4. Gastric cancer: Those who have pain can use ibuprofen, tramadol and other medicines to relieve pain as prescribed by doctor. After evaluation by doctors, those with clear gastric cancer can be treated with endoscopic surgery such as endoscopic mucosal resection, endoscopic mucosal dissection, laparoscopic surgery and palliative surgery according to doctor’s prescription. Radiation therapy, chemotherapy, immunotherapy, etc. may also be performed after surgery depending on the condition. There are many causes of abdominal pain lasting three hours, it is recommended that the patient consult a doctor for examination, to clarify the disease and then follow the doctor’s instructions for treatment, do not use drugs indiscriminately.