To do painless gastroscopy, you need to pay attention to fasting, urinary and fecal defecation, take out the dentures, etc., and keep relaxing, if you have any discomfort, you should inform the doctor in time. 1. You need to keep fasting before and after the painless gastroscopy, and abstain from food and water, smoking and alcohol after 8:00 p.m. on the night before the examination, so as not to affect the results of the next day’s examination. You can eat only after the painless gastroscopy is finished without discomfort to avoid adverse reactions. 2. Painless gastroscopy requires anesthesia, so you need to defecate as much as possible before the procedure. 3. For those who wear dentures, they should remove them so that they will not fall out and cause blockage of the airway and esophagus. 4. Electrocardiogram and other tests should be completed before the painless gastroscopy to avoid cardiovascular risks. Painless gastroscopy should be operated by specialized doctors, and the operator should keep a good mindset and remain relaxed.