SG_007_CHAPTER 10
User Access and Security对象权限,系统权限,角色权限。Creating and Modifying User Accounts:Configuring Account Authentication:用户连接到数据库,必须做认证,一般有3种认证类型。1.数据库认证。Oracle检查用户是否合法,check用户名和密码。Database-authenticated user accounts默认账号类型。建立账号例子:Create user piyush IDENTIFIED BY welcome;2.oracle只check用户名的合法性,密码由系统和网络来检验。Externally authenticated user accounts这些账户一般称之为OPS$,例子:Create user ops$appl IDENTIFIED EXTERNAL
SG_007_CHAPTER 9
Other Database ObjectsCreating and Managing Sequences:序列值存在于数据字典中。Creating and Dropping Sequences:Create sequence schema..sequence 参数;参数:start with integer : 默认为1 Increment by integer :每次增长或减少数,默认为1 Nominvalue Minvalue integer : 产生最小的数字 NOMAXVALUE MAXVALUE interger :最大的数字 NOCYCLE CYCLE NOCACHE CACHE : 序列的size保存在内存中。默认为20.Drop sequence sequence_nameUsing Sequences:得到序列的后一
SG_007_CHAPTER 8
Managing Views:Creating and Modifying Views:Create view view_name ASSelect column1,column2From tableWhere conditionUsing Defined Column Names:Create view view_name (column1,column2,…..)AS select xxxx From table Where condition.如果建立一个视图是使用select *的话,如果之后修改主表的话,必须重新建立视图。Creating Views with Errors:建立视图的时候,使用FORCE参数。(NO FORCE是默认的)Create force view view_name ASSelect *From table1即使没有table1,视图照样建立。但是进去视图的时候,会出错。
SG_007_CHAPTER 7
/* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-languag
SG_007_CHAPTER 6
/* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-languag
SG_007_CHAPTER 5
Simple Joins: 使用符号‘=’相连2个表。属于内连接(inner join),因为只返回满足连接条件的数据。Complex Joins:除了在where中使用join 条件,还可以在where中添加限制条件。注意:当alias name定义好之后,只能使用alias name。Using ANSI Syntax:<table name> NATURAL [INNER] JOIN <table name>这种自然连接,根据2个表中具有同样名称的column,来连接多个表。等同于使用符号‘=’,来连接表。注意不能使用qualify the column name。如果使用select * ,common columns只列出一个。<table name> [INNER] JOIN &l
SG_007_CHAPTER 3(2)
/* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-lang
SG_007_CHAPTER 3(1)
st1:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; ms
SG_007_CHAPTER ONE
st1:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-farea
SG_007_CHAPTER 4 (汇聚函数)
AVG([{DISTINCT | ALL}] <n>) 默认是all CORR(<y> , <x>)返回一对表达式的相关系数 运算为:COVAR_POP(y,x) / (STDDEV_POP(y) * STDDEV_POP(x)). COUNT({* | [DISTINCT | ALL] <x>}),default is ALL COVAR_POP(<y> , <x>) 返回一对表达式的总体协方差 (SUM(y*x) - SUM(y) * SUM(x) / COUNT(x)) / COUNT(x) COVAR_SAMP(<y> , <x>)返回一对表达式的样本协方差 (SUM(y*x) - SUM(y) * SUM(x) / COUNT(x)) / (COUNT(x)-1) CUME_DIST(<val_list>) WITHIN GROUP (ORDER BY col_l