I'm sorry, Rob G's answer is quite incorrect. Airlines are now hiring only college graduates with 4-year degrees as pilots. In addition, of course, you will need all the appropriate flight ratings up to and including the Air Transport Pilot (ATP) certificate. Most major airlines require at least 2,000 hours total flight time.
There are no educational requirements for the ratings themselves; the learning process for those is self-contained. You will do better on the ratings if you are well grounded in math and the basic sciences.
The reason the airlines now require 4-year degrees is that the aircraft systems and flight procedures become more complex every year, and the airline hiring executives want to know that an applicant has good learning skills and can absorb new material quickly.
The degree can be in almost any field as long as it is finished. Accounting, Business Administration, and Law Enforcement degrees are popular nowadays, in addition to the traditional favorites, math, science, and engineering.
It's a very competitive field, so be sure your grades are on the top level and you have a good record as a person of good character.