What causes a stomach ache that is relieved by eating?

Gastroparesis relieved by eating is a typical symptom of duodenal ulcer, which is a localized inflammatory rupture of the intestinal mucosa eroded by digestive juices caused by excessive gastric juice secretion. It may also be caused by duodenal bulbitis, partially combined with gastritis with increased gastric acid secretion.
The main cause of duodenal ulcers is the entry of digestive fluids such as gastric acid and pepsin produced by the stomach wall into the duodenum, and the invasive effect is out of balance with the defense ability of the mucous membrane, resulting in the intestinal mucous membrane being corroded by the digestion and triggering an ulcer.
Duodenal ulcer patients are mostly young adults, gastroscopy can be seen in the intestinal wall there is a round or oval, neat edge, deep to the muscle layer, the diameter of the ulcer is less than 1.0cm. Patients may experience epigastric pain in fasting or nocturnal states, which is relieved by eating.
Duodenal bulbitis, some combined with gastritis with increased acid secretion, etc. can also have empty abdominal pain, which appears to be relieved after eating.
Gastroscopy is recommended to clarify the cause of the disease, and early standardized treatment is recommended to reduce the adverse effects of the disease.