What should I take for stomach pain?

First of all, you should not take painkillers blindly for stomach pain. You need to identify the cause of stomach pain before taking medication to avoid blind pain relief to hide the real condition.
If the cause of the stomach pain is clearly identified, it can be treated in a targeted manner.
For example, if a stomach ulcer is the cause, a stomach acid inhibitor can be used to reduce the irritation of the stomach ulcer, thereby reducing stomach pain. Gastric mucosal protectors can also be used to reduce the symptoms of stomach pain by forming a protective layer on the surface of the stomach body and slowing down the irritation of the stomach ulcers by stomach acid.
If the problem is caused by H. pylori, killing of H. pylori is needed to solve the problem completely; if there is a stomach pain emergency with gastric perforation, the first thing needed is to go to hospital immediately for treatment rather than blindly using painkillers.