Stomach pain may be caused by gastritis, gastric ulcer and other factors, and can be relieved by medication and dietary adjustments. 1. Medication: For stomach pain caused by gastritis, gastric ulcer and other diseases, you can generally take drugs to inhibit the secretion of gastric acid such as omeprazole, gastric mucous membrane protector such as colloidal bismuth pectin, and antacids such as aluminum thioglycollate and so on. 2. Easy-to-digest food: It is recommended to eat easy-to-digest liquid or semi-liquid food, such as millet porridge, egg custard, soft noodles and so on. There are many causes of stomach pain, it is recommended to seek medical attention in a timely manner, under the guidance of a physician to clarify the cause of the disease for standardized treatment, the specific dietary structure can also consult a professional physician.