Mitschuler(in) can be used, generally referring to primary and secondary schools or some vocational schools. For example, college students can use Kommilitone or Kommilitonin, which is specially for college students.
You can also use Klassenkamerad, which is synonymous with Mitschuler.