Anyone try this method?

So took baby girl to her six month checkup today and asked for advice on sleeping through the night. Cuz this girl wakes up every three hours on the dot for her milk! She’ll drink anything from 2-4ounces 😵anyways one of the pediatricians suggested I give her a bottle with water in it instead of my milk. That way she’s not rlly getting what she wants and will stop waking around the third day? Idk anyone have any experience with this?