There are general treatment, medication and surgery for gastric ulcer pain relief. Medications include omeprazole and aluminum phosphate gel. 1. General treatment:Eat regularly and quantitatively; avoid spicy and stimulating food, avoid drinking coffee, strong tea, etc.; avoid taking non-steroidal anti-inflammatory drugs such as ibuprofen, aspirin, etc.; quit smoking and drinking; avoid excessive tension and anxiety. 2. Drug therapy: inhibit gastric acid secretion, such as omeprazole and other proton pump inhibitors, ranitidine and other antihistamines; protect the gastric mucosa, such as aluminum phosphate gel; anti-Helicobacter pylori, such as rabeprazole + amoxicillin + Clarithromycin + bismuth potassium citrate. 3. Surgical treatment:Gastric ulcers are treated with medication, the ulcers are not healed, the efficacy is not satisfactory; gastric ulcers cause serious complications, such as gastric ulcer bleeding, gastric perforation, pyloric obstruction, cancer, etc., surgical treatment can be considered. You should go to the hospital when you have a painful stomach ulcer and be treated under the guidance of your doctor.