After adjusting for age and BMI, the risk of developing secondary diabetes and IFG in subjects with later pathological stage BC (hazard ratio (HR) = 1.623; 95 % confidence interval (CI) 1.128–2.335 (P < 0.01)), negative progesterone receptor (PR) expression (HR = 0.530; 95 % CI 0.372–0.755 (P < 0.001)), positive human epidermal growth factor receptor 2 (HER2) expression (HR = 1.822; 95 % CI 1.230–2.700 (P < 0.01)), and more lymph node metastasis (HR = 1.595; 95 % CI 1.128–2.258 (P < 0.01)) was significantly higher. Here, ERBB2 is linked to diabetes mellitus.