Text this: Correlation between long-term glycemic variability and cognitive function in middle-aged and elderly patients with type 2 diabetes mellitus: a retrospective study