What’s wrong with a toothache that stops when you drink cold water and then hurts again?

Cold water is not painful after a while for acute pulpitis, you need to go to the stomatology clinic, the general treatment is root canal surgery.
“Hot pain and cold relief” is the manifestation of acute pulpitis, specifically manifested as spontaneous pain in the teeth, pain at night, but the use of cold water or eat cold food, the pain will temporarily disappear, and after a while the pain reappeared.
Acute pulpitis is usually caused by large tooth decay or tooth irritation resulting in inflammation of the pulp, but may also be an acute attack of chronic pulpitis, you need to go to the internal medicine clinic of the Department of Stomatology clinic, endodontic surgery to remove the infected and inflamed pulp, and then later on, root canal preparation, root canal disinfection, and finally, the root canals and crowns to fill the tooth.