Job Recruitment Website - Ranking of immigration countries - Studying in Germany is related to permanent residence.

Studying in Germany is related to permanent residence.

Basically correct.

Those who get scholarships for doctoral studies are generally student visas, and they don't have to pay taxes when they get money, so they can't be considered as "working for 5 years"; Only those who get paid and pay endowment insurance can be considered as work visas.

As for the "scholar visa", I have never heard of it. Even if there is, it has nothing to do with you as a doctoral student.