There are physiological and pathological reasons for the occurrence of stomach pain and green stools, which can be treated by diet adjustment and medication to improve the symptoms. If the symptoms persist or worsen, you should go to the hospital in time to clarify the cause and treat the cause. 1, physiological causes: eating too much green vegetables, such as spinach, green vegetables, etc., resulting in indigestion, pigment is not fully absorbed, can be excreted with the stool after abdominal pain, suspend the intake of such food, the stool can gradually return to normal, combined with indigestion can take oral digestive drugs, such as digestive enzymes to relieve symptoms. 2, pathological causes: such as gastroenteritis, stimulated by cold or improper diet, bacteria, viral infection, the intestinal tract is stimulated, affecting intestinal peristalsis and absorption function, resulting in symptoms of stomach pain, stool color turns green. If the stool routine suggests inflammation, oral anti-inflammatory medication is needed; if there is no inflammatory infection, but only indigestion, oral medication to regulate intestinal flora such as probiotics can be taken. Daily diet should pay attention to avoid bad food stimulation, a small number of meals, while paying attention to abdominal warmth.