different types of ulcers
Both types of peptic ulcers are most commonly caused either by infection with Helicobacter pylori (H. pylori) bacteria or by frequent use of nonsteroidal anti-inflammatory drugs (NSAIDs). The symptoms of gastric ulcers and duodenal ulcers are similar, except for when pain occurs. 1  Pain from a gastric ulcer often occurs when food is still in the stomach, shortly after eating.  Pain from a duodenal ulcer often occurs when the stomach is empty, several hours after eating, and may improve after eating.