In conclusion, based on the results of this study, aspirin can improve OS and CSS in patients with colorectal cancer after diagnosis, especially in those with PIK3CA gene mutations and high PTGS2 (COX-2) gene expression, but it cannot improve OS in patients with esophageal cancer and gastric cancer. Here, PIK3CA is linked to gastric cancer.