What's the difference between a fairy tale and a fable?

I think fables usually have some kind of moral teaching. Krylov's fables were always like that, with hidden content so as to get past the censors.