Who was the first President of the USA to hold a doctorate?

The first (and, well, only) President of the USA to hold a doctorate was
Woodrow Wilson, who was President of Princeton University before
becoming President of the United States in 1913.