Stomach pain every night is not necessarily caused by stomach cancer, but may be caused by the following reasons: first, excessive secretion of stomach acid, such patients have excessive secretion of stomach acid and no food digestion in the stomach, so it will cause certain stimulation to the stomach mucosa and lead to stomach pain. Secondly, it may be caused by gastric spasm, which is caused by various reasons of gastric mucous membrane irritation, resulting in smooth muscle contraction and gastric spasm, so you can apply hot compresses to the stomach or gently massage the stomach with your hands, and use antispasmodic and analgesic drugs such as scopolamine for symptomatic treatment. Of course, in order to confirm whether there is stomach cancer, gastroscopy can be done. If stomach cancer or precancerous lesions are considered, certain specimens can be selected and sent for examination to confirm the final diagnosis.