Jed Clampett, actually. Andy was a well-educated sheriff and Justice of the peace.
Andy Griffith played Sheriff Andy Taylor on Mayberry and I don’t know if he used it there or not, nor do I know if Buddy Ebsen used it as Jed Clampett. Before Mayberry Andy Griffith was a country comic and part of one of his routines was “Pi r’ round, cornbread r’ square.”