The drinking age in Thailand is 20. It is in the interest of bar owners to enforce this as establishments do occasionally get raided for underage drinkers and patrons under the influence of illegal substances. This doesn't mean you can't buy alcohol if you are underage. Many people do, but we heavily advise you against it - again, it can result in jail if the police catch you.