The cause of a stabbing pain in the heart may be angina pectoris, esophageal reflux or caused by mental stress, insufficient rest, etc. According to the specific causes, you can improve your lifestyle, medication and other treatments. 1. Angina pectoris: generally can be relieved by taking nitroglycerin under the tongue, usually should pay attention to rest, quit smoking and alcohol and other bad habits, ease the mood, avoid anxiety and so on. 2. Esophageal reflux: it can be relieved by regular diet, elevating the head of the bed, avoiding eating before bedtime and other lifestyles, and if necessary, it can be treated by medication, such as proton pump inhibitor omeprazole, ranitidine, magnesium carbonate and so on. 3. Mental stress, insufficient rest: mainly through lifestyle changes to ease, avoid mental stress, adequate sleep, appropriate exercise. If there is a burst of pain in the heart should be timely medical treatment, examination and diagnosis of targeted treatment, drugs need to follow the doctor’s instructions for rational application.