目的:在社区老年2型糖尿病人群中评估口服二甲双胍年限对老年人认知功能的影响。方法:选取青岛市泊里社区体检的1114名65以上的口服二甲双胍的糖尿病{2}为研究对象,收集年龄、体质指数(BMI)、学历、是否吸烟,高血压病史、重大精神疾病史、脑血管病史、谷丙转氨酶、谷草转氨酶、肌酐、总胆固醇、甘油三酯、低密度脂蛋白、高密度脂蛋白、空腹血糖资料。用简明认知功能量表(MMSE)评估认知功能,以是否患有认知障碍为因变量,比较收集的资料是否与认知障碍有相关性,并应用logistic回归分析二甲双胍治疗年限对认知功能的影响。结果:认知障碍和非认知障碍的老年2型糖尿病{2}相比,体质指数、收缩压、舒张压、谷草转氨酶、谷丙转氨酶、肌酐、总胆固醇、甘油三酯、空腹血糖、是否吸烟、是否高血压无统计学差异(p > 0.05);与非认知障碍组相比,认知障碍组的年龄、低密度脂蛋白、高密度脂蛋白更高(p Objective: To evaluate the effect of the duration of oral metformin treatment on cognitive function in elderly patients with type 2 diabetes in a community setting. Methods: This study included 1114 diabetic patients aged 65 and above taking oral metformin from the Poli community in Qingdao. Data collected included age, body mass index (BMI), education level, smoking status, history of hypertension, major psychiatric disorders, cerebrovascular disease, levels of alanine transaminase (ALT), aspartate transaminase (AST), creatinine, total cholesterol, triglycerides, low-density lipoprotein (LDL), high-density lipoprotein (HDL), and fasting blood glucose. Cognitive function was assessed using the Mini-Mental State Examination (MMSE). Cognitive impairment was used as the dependent variable to analyze the correlation between the collected data and cognitive impairment, and logistic regression was applied to evaluate the effect of the duration of metformin treatment on co