Patients with gastric ulcers can drink soda in moderation, but excessive consumption is not recommended, especially when the gastric ulcer is active. This is because gastric ulcers are mainly due to increased secretion of gastric acid and pepsin, which stimulates gastric mucosal damage and leads to erosion of the gastric mucosa and ulcer formation. The soda is an aqueous solution of sodium bicarbonate, which is a weak alkaline liquid that can neutralize gastric acid to a certain extent and reduce the acidity of gastric juice, reducing the gastric acid stimulation and damage to the gastric mucosa, so you can drink soda properly. If you drink soda during the active period of gastric ulcer, it can cause an increase in carbon dioxide secretion, which may lead to complications such as peptic perforation or gastrointestinal bleeding, so try not to drink soda during the active period of gastric ulcer.