Diabetes mellitus (DM) has a high prevalence in patients with pancreatic cancer (PaC), but the prognostic value of DM in PaC remains controversial. Alterations of P-glycoprotein (P-gp) and cytochrome P450 3A4 (CYP3A4) contribute to multidrug resistance and intestinal metabolism in a variety of cancer types, which may be implicated in DM development. This study aimed to explore the potential prognostic value of P-gp and CYP3A4 in PaC patients in the context of DM through long-term follow-up. We retrospectively reviewed the medical records of patients with PaC admitted at The First People's Hospital of Changzhou, Jiangsu, China, from January 2011 to November 2019 and identified two cohorts of adult patients with PaC, including 24 with DM and 24 without DM (non-DM). The baseline clinical characteristics and outcomes were compared. Immunohistochemistry showed that protein expression of P-gp, but not CYP3A, in duodenum tissues was significantly upregulated in PaC patients with DM compared with those without DM. Kaplan-Meier analysis and log-rank test showed that the survival of patients with PaC and DM/high expression of P-gp was not significantly reduced compared with that of patients without DM/low expression of P-gp. These findings suggested that P-gp expression levels were different in the DM and non-DM groups of patients with PaC, but DM and duodenal P-gp levels were not associated with the long-term survival of patients with PaC. It appears that the presence of DM or P-gp expression levels may not serve as effective prognostic markers for PaC.