2022年5月27日

Hive课堂笔记

摘要: [https://zhiyun.biz:9999/34/hive.html] 阅读全文

posted @ 2022-05-27 09:57 唯一的Dove 阅读(31) 评论(0) 推荐(0)

2022年5月20日

遍历当前目录

摘要: 点击查看代码 #!/bin/bash read_dir(){ for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令 do if [ -d $1"/"$file ] #注意此处之间一定要加上空格,否则会报错 then echo $1"/"$file'是目录' read_d 阅读全文

posted @ 2022-05-20 15:59 唯一的Dove 阅读(22) 评论(0) 推荐(0)

2022年5月5日

Linux操作命令

摘要: Linux操作命令 Linux/Mac 下使用ssh命令连接一台linux服务器(俗称:命令行连接服务器)https://www.cnblogs.com/syw20170419/p/13151179.html su 切换用户 cp 拷贝文件 mv 移动(剪切) Ctrl+C 返回 history 查 阅读全文

posted @ 2022-05-05 10:03 唯一的Dove 阅读(28) 评论(0) 推荐(0)

2022年4月28日

。。。

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

posted @ 2022-04-28 19:01 唯一的Dove 阅读(40) 评论(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 阅读(1299) 评论(0) 推荐(0)

2022年4月27日

SQL 单词

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

posted @ 2022-04-27 20:04 唯一的Dove 阅读(91) 评论(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 阅读(17) 评论(0) 推荐(0)

UNION ALL和UNION不同之处

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

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

导航