When I was a kid, we had a dog, a lovely beagle. She did like getting onto the table and eating whatever meat was on it.
I did manage to teach her better, by deliberately leaving some seriously spicy curry out. She was NOT HAPPY, but she never got back on the table, either.