An ulcer is a breakdown of tissue on the inside of the stomach or small intestine. This causes a sore to form. Learn more about what to do when your child has an ulcer in the stomach (gastric ulcer) or in the first part of the small intestine (duodenal ulcer).