Does a little tomato juice help upset stomach?

My baby has been having stomach pain for a while and he hasn't had a bowel movement for 3 days. Everyone is telling me to give him a little tomato juice from a row tomato. Online, everyone says it is not good for the stomach. I don't know what to do. It is not nice to watch him in pain. Has anyone used it? And had some success?