摘要:        
Flume环境搭建_五种案例 A simple example <!--more--> Here, we give an example configuration file, describing a single-node Flume deployment. This configuration    
阅读全文
            posted @ 2017-03-12 17:15
日月的弯刀
阅读(10609)
推荐(1)
        
             
        
        
        
            posted @ 2017-03-12 17:04
日月的弯刀
阅读(185)
推荐(0)
        
             
        
        
摘要:        
Oracle_复杂查询综合 <!--more--> <!--WizRtf2Html Charset=0 -->-- 1、列出所有员工的年工资,按年薪从低到高排序。 select empno, ename, sal, nvl2(comm, (sal+comm)*12, sal*12) income f    
阅读全文
            posted @ 2017-03-12 16:58
日月的弯刀
阅读(776)
推荐(0)
        
             
        
        
摘要:        
Oracle_基本函数查询综合 <!--more--> <!--WizRtf2Html Charset=0 -->--【1】查询出每各月倒数第三天受雇的所有员工 select * from emp where hiredate = last_day(hiredate)-2; --【2】找出早于30年    
阅读全文
            posted @ 2017-03-12 16:58
日月的弯刀
阅读(690)
推荐(0)
        
             
        
        
摘要:        
Oracle常用查询 <!--more-->    
阅读全文
            posted @ 2017-03-12 16:57
日月的弯刀
阅读(174)
推荐(0)
        
             
        
        
摘要:        
Oracle_where子句 <!--more--> <!--WizRtf2Html Charset=0 -->--1.查询员工名为‘SMITH’的信息 select * from emp where ename = 'SMITH'; <!--WizRtf2Html Charset=0 -->--2    
阅读全文
            posted @ 2017-03-12 16:56
日月的弯刀
阅读(568)
推荐(0)
        
             
        
        
摘要:        
Oracle_单行函数 <!--more--> <!--WizRtf2Html Charset=0 -->--dual是一张虚拟表,用于做测试 select sysdate from dual; select 1 + 1 from dual; 字符函数initcap(),lower(),upper(    
阅读全文
            posted @ 2017-03-12 16:55
日月的弯刀
阅读(787)
推荐(0)
        
             
        
        
摘要:        
Oracle_多行函数 多行函数min(),max(),count(),sum(),avg() <!--WizRtf2Html Charset=0 -->--1.1统计公司的最高工资,最低工资和总人数 --对于null值直接略过,不做运算 --max,min,count可以对任意类型进行操作 sel    
阅读全文
            posted @ 2017-03-12 16:54
日月的弯刀
阅读(1269)
推荐(0)
        
             
        
        
摘要:        
Oracle_SQL92_连接查询 笛卡儿积 <!--WizRtf2Html Charset=0 -->--笛卡尔积 select * from emp; 14 select * from dept; 4 select * from emp,dept; 56 等值连接 <!--WizRtf2Html    
阅读全文
            posted @ 2017-03-12 16:53
日月的弯刀
阅读(1463)
推荐(0)
        
             
        
        
摘要:        
Oracle_SQL99_连接查询 <!--more--> <!--WizRtf2Html Charset=0 -->交叉连接 cross join <!--WizRtf2Html Charset=0 -->--交叉连接 cross join --作用:产生两个表的笛卡尔积 select * fro    
阅读全文
            posted @ 2017-03-12 16:52
日月的弯刀
阅读(336)
推荐(0)
        
             
        
        
摘要:        
Oracle_子查询 <!--WizRtf2Html Charset=0 -->子查询 <!--more--> <!--WizRtf2Html Charset=0 -->--如何查得所有比“CLARK”工资高的员工的信息 select ename, sal from emp where ename     
阅读全文
            posted @ 2017-03-12 16:51
日月的弯刀
阅读(1237)
推荐(0)
        
             
        
        
摘要:        
Oracle_group by分组查询_深入 本文导读:在实际SQL应用中,经常需要进行分组聚合,即将查询对象按一定条件分组,然后对每一个组进行聚合分析。 <!--more--> 创建分组是通过GROUP BY子句实现的。与WHERE子句不同,GROUP BY子句用于归纳信息类型,以汇总相关数据。G    
阅读全文
            posted @ 2017-03-12 16:50
日月的弯刀
阅读(57425)
推荐(6)
        
             
        
        
摘要:        
Oracle_创建用户_授予权限 <!--more--> --创建用户,需要足够的权限 create create user hzf identified by hzf; --给用户bjsxt分配权限 grant grant connect,resource to hzf; grant dba to    
阅读全文
            posted @ 2017-03-12 16:49
日月的弯刀
阅读(2311)
推荐(0)
        
             
        
        
摘要:        
Oracle_insert_delete_update <!--more--> <!--WizRtf2Html Charset=0 -->--复制表格的结构 create table temp as (select * from emp where 1=2); select * from temp;    
阅读全文
            posted @ 2017-03-12 16:47
日月的弯刀
阅读(818)
推荐(0)
        
             
        
        
摘要:        
Oracle_建表 <!--more--> <!--WizRtf2Html Charset=0 -->--设计要求: --建立一张用来存储学生信息的表 --字段包含学号、姓名、性别,年龄、入学日期、班级,email等信息 <!--WizRtf2Html Charset=0 -->create tab    
阅读全文
            posted @ 2017-03-12 16:46
日月的弯刀
阅读(290)
推荐(0)
        
             
        
        
摘要:        
Oracle_字段数据类型 <!--more--> 数据库表字段的数据类型 字符数据类型 CHAR:存储固定长度的字符串 VARCHAR2 :存储可变长度的字符串 数值数据类型 NUMBER:存储整数和浮点数,格式为NUMBER(p, s) column_name NUMBER { p = 38,     
阅读全文
            posted @ 2017-03-12 16:45
日月的弯刀
阅读(730)
推荐(0)
        
             
        
        
摘要:        
Oracle_事务 <!--more--> <!--WizRtf2Html Charset=0 -->-事物管理 create table account( id number, money number ); --实现转账操作 update account set money = money -     
阅读全文
            posted @ 2017-03-12 16:44
日月的弯刀
阅读(187)
推荐(0)
        
             
        
        
摘要:        
Oracle_rowid_rownum_分页 <!--more--> <!--WizRtf2Html Charset=0 -->--rowid select * from account where rowid='AAASR6AAEAAAAJWAAA'; <!--WizRtf2Html Charse    
阅读全文
            posted @ 2017-03-12 16:43
日月的弯刀
阅读(811)
推荐(0)
        
             
        
        
摘要:        
Oracle_索引 索引类似字典的和课本目录,是为了加快对数据的搜索速度而设立的。索引有自己专门的存储空间,与表独立存放。 索引的作用:在数据库中用来加速对表的查询,通过使用快速路径访问方法快速定位数据,减少了磁盘的I/O 索引创建以后,在用户撤销它之前并不会用到该索引的名字,但是索引在用户查询时会    
阅读全文
            posted @ 2017-03-12 16:41
日月的弯刀
阅读(234)
推荐(0)
        
             
        
        
摘要:        
Oracle_数据库表的约束 <!--more--> 完整性约束分类 域完整性约束 (非空not null,检查check) 实体完整性约束 (唯一unique,主键primary key) 参照完整性约束 (外键foreign key) 三种完整性约束的区别 域完整性约束:字段约束 实体完整性约束    
阅读全文
            posted @ 2017-03-12 16:40
日月的弯刀
阅读(526)
推荐(0)