It's called The Animal Fair, a nursery rhyme. Apparently, it became widely known during the 1898 World's Fair. The lyrics morphed over time, and regionally, and it was taught to more recent generations via Captain Kangaroo and Barney. (undoubtedly without the drunk monkeys). There are dozens of versions of it on YouTube.
Seadog - Thanks for sharing the memory!