04 2022 档案

。。。
摘要:dml语句 高水位,递归查询, 阅读全文

posted @ 2022-04-28 19:01 唯一的Dove 阅读(33) 评论(0) 推荐(0) 编辑

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) 编辑

SQL 单词
摘要:点击查看代码 表关键字 select -- 查询 from -- 从哪里 where -- 条件 group by -- 按照..分组 order by -- 按照 ... 排序 having -- 对分组后的结果进行 条件筛选 asc -- 升序 desc -- 降序 --多表-- inner j 阅读全文

posted @ 2022-04-27 20:04 唯一的Dove 阅读(80) 评论(0) 推荐(0) 编辑

行转列
摘要:点击查看代码 create table test6 ( year number, month number, amount number ) --drop table test6 建立表数据 select * from test6 for update select year, max(decode 阅读全文

posted @ 2022-04-27 19:52 唯一的Dove 阅读(13) 评论(0) 推荐(0) 编辑

UNION ALL和UNION不同之处
摘要:UNION ALL这个指令的目的也是要将两个SQL语句的结果合并在一起。 UNION ALL和UNION不同之处在于UNION ALL会将每一 笔符台条件的资料都列出来,无论资料值有无重复。 阅读全文

posted @ 2022-04-27 19:39 唯一的Dove 阅读(30) 评论(0) 推荐(0) 编辑

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