随笔分类 -  代码效率问题

高效代码
1=1 意思及其效率问题
摘要:程序员在编程过程中,经常会在代码中使用到“where 1=1”,这是为什么呢? SQL注入 初次看到这种写法的同学肯定很纳闷,加不加where 1=1,查询不都一样吗?例如: select *from customers;与select *from customerswhere 1=1; 查询出来的 阅读全文

posted @ 2022-04-28 12:00 唯一的Dove 阅读(1249) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示