I think you get three months at a consulate and then extend that inside Thailand. But I guess it also depends on what you're going to study. Not an expert in ED visas, though.
If you were to go for a single entry visa, you could enrol in a school that helps you sort out the ED visa while you're here. I think that's what I'd do.