Although the prognostic survival of diabetic pancreatic cancer patients with high infiltration of CD8+ T cells was not significantly improved in our study, it suggests that the two diseases, diabetes and pancreatic cancer, show a complex pattern of relationship in the tumour tissue of patients with diabetes combined with pancreatic cancer. Here, CD8A is linked to diabetes mellitus.