Any food that is not specified as pet food should be avoided. People food treats are ok on occasion but do interfere with the animals digestive tract and process. In my dogs(bostons) it can cause unpleasant gas. Not enjoyable for anyone.
Many foods produced for humans contain items which may unknowingly contain substances harmful to dogs. It is better to stick to foods produced specifically for canines.
Yes, it is good if they are having an upset stomach and vomiting digestive problems mixed with white rice. My vet has recommended this many times for my dogs.