This study included 330,684 GLP‐1‐RA users and 264,277 SGLT2‐I users with T2DM. Here, SLC5A2 is linked to type 2 diabetes mellitus.