In the stratified analysis by histological types, significantly risks were not found among gastric cancer (HR = 0.66, 95% CI: 0.16–1.15) or colorectal cancer (HR = 0.91, 95% CI: 0.63–1.19), respectively, indicating EZH2 was not an indicator of poor prognosis in gastric cancer or colorectal cancer. Here, EZH2 is linked to colorectal cancer.