You can take painkillers the day before the gastroscopy if the pain is severe. If you suffer from severe stomach disease causing severe stomach pain, you can take painkillers, such as belladonna tablets, atropine, etc., the day before the gastroscopy for pain relief if necessary. However, if the pain is not serious, try to avoid taking painkillers at will to avoid causing some side effects, such as gastric mucous membrane damage and bleeding. The day before the gastroscopy, it is recommended to try to eat a light diet, do not eat not easy to digest or greasy food, in order to avoid indigestion. It is also recommended to abstain from food and water for 8 hours before the gastroscopy to avoid nausea, vomiting and other symptoms during the examination. It is important to consult with your doctor before having a gastroscopy to prepare for the test.