There are many causes of stomach pain and farting, not necessarily cancer, but more likely related to improper diet, acute gastroenteritis, gastric ulcer, indigestion and other factors. 1. Improper diet: Improper diet can lead to stomach pain and bloating, such as eating a lot of easy to produce gas, spicy and stimulating, greasy food and so on. At this time can stop eating the trigger food or take probiotic drugs after the symptoms quickly improve, generally without special treatment; 2, acute gastroenteritis: the usual unclean diet or overeating led to the development of acute gastroenteritis, at this time to avoid eating cool food, pay attention to abdominal warmth, if necessary, under the guidance of doctors oral haloperidol, flavopiridol, with montelukast, vitamin B6, digestive enzymes, etc. to relieve symptoms. In addition, patients are prone to symptoms of dehydration, they can drink warm saline or sugar saline, and serious cases need timely infusion; 3. Gastric ulcer: symptoms of stomach pain and farting can also occur. Prostaglandin E2 synthesizer and omeprazole can be used, and drugs to protect gastric mucosa, such as aluminum thioglycollate and bismuth, can be given for treatment; 4.Indigestion: due to weak spleen and stomach, gastric power deficiency appears indigestion, resulting in long-term abdominal pain and unformed stool, oral probiotics or digestive enzymes, such as Bifidobacterium bifidum live capsule, AnGastric capsule, stomachic elimination tablets, multi-enzyme tablets, domperidone tablets and other drugs can be taken To relieve symptoms; 5. Gastric cancer: some patients with gastric cancer in the middle and late stages may have stomach pain, abdominal discomfort, abdominal distension after eating, accompanied by more exhaustion and other manifestations, but the chance of occurrence is small. If patients have worries in this regard, they can undergo corresponding examination under the guidance of doctors, and if there is a clear diagnosis, they can be actively treated by means of surgical resection, radiotherapy and chemotherapy.