菜鸟级SQL21天自学通

获得积分
资料库会员登录
搜索: [高级搜索]
下载首页 | 资源分类 | 下载排行
您的位置: 首页 > 信息化技术 > MSSQL
 
分类导航
下载排行
最新资源
菜鸟级SQL21天自学通
资源大小:1.99 MB 资源类型:文档
下载积分: 0
更多
-->
下载统计:总下载:0,本月下载:0,本周下载:0,今日下载:0
发表评论 错误报告 加入收藏夹
资源介绍
目录
目录.......................................................................................................................................... 1
译者的话............................................................................................................................. 14
第一周概貌............................................................................................................................. 16
从这里开始............................................................................................................. 16
第一天SQL 简介.................................................................................................................. 17
SQL 简史................................................................................................................ 17
数据库简史............................................................................................................. 17
设计数据库的结构................................................................................................... 21
SQL 总览......................................................................................................... 23
流行的SQL 开发工具....................................................................................... 24
SQL 在编程中的应用........................................................................................ 27
第二天查询— — SELECT 语句的使用................................................................................... 30
目标.................................................................................................................... 30
背景................................................................................................................. 30
一般的语法规则............................................................................................... 30
你的第一个查询............................................................................................... 33
总结.................................................................................................................... 37
问与答................................................................................................................. 38
校练场.................................................................................................................... 38
练习.................................................................................................................... 39
第三天表达式条件语句与运算.......................................................................................... 40
第四天函数对数据的进一步处理....................................................................................... 60
目标.................................................................................................................... 60
汇总函数................................................................................................................. 60
COUNT............................................................................................................ 61
SUM ................................................................................................................ 61
AVG................................................................................................................. 63
MAX................................................................................................................ 63
MIN................................................................................................................. 64
VARIANCE...................................................................................................... 65
STDDEV.......................................................................................................... 66
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 2
日期/时间函数......................................................................................................... 66
ADD_MONTHS................................................................................................ 67
LAST_DAY...................................................................................................... 68
MONTHS_BETWEEN....................................................................................... 69
NEW_TIME...................................................................................................... 70
NEXT_DAY...................................................................................................... 71
SYSDATE......................................................................................................... 72
数学函数................................................................................................................. 72
ABS ................................................................................................................. 73
CEIL 和FLOOR ............................................................................................... 73
COS COSH SIN SINH TAN TANH........................................................ 73
EXP................................................................................................................. 75
LN and LOG..................................................................................................... 75
MOD................................................................................................................ 76
POWER............................................................................................................ 77
SIGN ............................................................................................................... 77
SQRT ............................................................................................................... 78
字符函数................................................................................................................. 79
CHR................................................................................................................. 79
CONCAT .......................................................................................................... 79
INITCAP.......................................................................................................... 80
LOWER 和UPPER ........................................................................................... 81
LPAD 与RPAD................................................................................................. 82
LTRIM 与RTRIM............................................................................................. 83
REPLACE ........................................................................................................ 84
SUBSTR........................................................................................................... 85
TRANSLATE.................................................................................................... 88
INSTR ............................................................................................................. 88
LENGTH.......................................................................................................... 89
转换函数................................................................................................................. 89
TO_CHAR........................................................................................................ 90
TO_NUMBER................................................................................................... 91
其它函数................................................................................................................. 91
GREATEST 与LEAST...................................................................................... 91
USER............................................................................................................... 92
总结........................................................................................................................ 92
问与答.................................................................................................................... 93
校练场.................................................................................................................... 93
练习........................................................................................................................ 94
第五天SQL 中的子句........................................................................................................... 95
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 3
目标.................................................................................................................... 95
WHERE 子句.......................................................................................................... 96
STARTING WITH子句............................................................................................ 98
ORDER BY 子句..................................................................................................... 99
GROUP BY 子句....................................................................................................104
HAVING 子句.........................................................................................................109
子句的综合应用.....................................................................................................112
总结.......................................................................................................................117
问与答...................................................................................................................117
校练场...................................................................................................................117
练习.......................................................................................................................118
第六天表的联合..................................................................................................................119
介绍.......................................................................................................................119
在一个SELECT 语句中使用多个表.........................................................................119
正确地找到列..................................................................................................123
等值联合................................................................................................................124
不等值联合............................................................................................................129
外部联合与内部联合..............................................................................................130
表的自我联合.........................................................................................................132
总结.......................................................................................................................134
问与答...................................................................................................................134
校练场...................................................................................................................134
练习.......................................................................................................................135
第七天子查询内嵌的SQL 子句........................................................................................136
目标...................................................................................................................136
建立一个子查询.....................................................................................................136
在子查询中使用汇总函数.......................................................................................140
子查询的嵌套.........................................................................................................141
相关子查询............................................................................................................144
EXISTS ANY ALL 的使用.................................................................................147
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 4
总结.......................................................................................................................151
问与答...................................................................................................................151
校练场...................................................................................................................152
练习...................................................................................................................153
第一周回顾............................................................................................................................154
预览.......................................................................................................................154
第二周概貌............................................................................................................................155
这一周都讲些什么..................................................................................................155
第八天操作数据..................................................................................................................156
目标.......................................................................................................................156
数据操作语句.........................................................................................................156
插入语句................................................................................................................157
INSERT VALUES 语句.....................................................................................157
INSERT SELECT 语句.....................................................................................161
UPDATE语句........................................................................................................163
DELETE 语句.........................................................................................................166
从外部数据源中导入和导出数据.............................................................................169
Microsoft Access ..............................................................................................170
Microsoft and Sybase SQL Server ......................................................................171
Personal Oracle7...............................................................................................171
总结.......................................................................................................................172
问与答...................................................................................................................172
校练场...................................................................................................................173
练习.......................................................................................................................173
第九天创建和操作表...........................................................................................................174
目标...................................................................................................................174
CREATE DATABASE 语句......................................................................................174
建立数据库时的选项.......................................................................................175
设计数据库.....................................................................................................176
建立数据字典..................................................................................................176
建立关键字段..................................................................................................177
CREATE TABLE 语句.............................................................................................178
表名................................................................................................................179
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 5
FIRST NAME..................................................................................................179
空值属性.........................................................................................................180
唯一属性.........................................................................................................181
表的存储与尺寸的调整....................................................................................183
用一个已经存在的表来建表.............................................................................184
ALTER TABLE 语句...............................................................................................185
DROP TABLE 语句.................................................................................................186
DROP DATABASE语句..........................................................................................187
总结.......................................................................................................................188
问与答...................................................................................................................188
校练场...................................................................................................................189
练习.......................................................................................................................190
第10 天创建视图和索引.......................................................................................................191
目标.......................................................................................................................191
使用视图................................................................................................................192
列的重命名.....................................................................................................196
SQL 对视图的处理过程...................................................................................197
在SELECT 语句使用约束................................................................................201
在视图中修改数据...........................................................................................201
在视图中修改数据的几个问题.........................................................................203
通用应用程序的视图.......................................................................................204
删除视图语句..................................................................................................207
使用索引................................................................................................................207
什么是索引..................................................................................................207
使用索引的技巧..............................................................................................212
对更多的字段进行索引....................................................................................212
在创建索引时使用UNIQUE 关键字.................................................................214
索引与归并.....................................................................................................216
群集簇的使用...........................................................................................217
总结.......................................................................................................................218
问与答................................................................................................................219
校练场...................................................................................................................219
练习...................................................................................................................220
第11 天事务处理控制.........................................................................................................221
目标...................................................................................................................221
事务控制................................................................................................................221
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 6
银行应用程序..................................................................................................222
开始事务处理..................................................................................................223
结束事务处理..................................................................................................225
取消事务处理..................................................................................................228
在事务中使用保存点.......................................................................................231
总结.......................................................................................................................234
问与答...................................................................................................................234
校练场...................................................................................................................235
练习.......................................................................................................................235
第12 天数据库安全............................................................................................................236
前提数据库管理员..............................................................................................236
流行的数据库产品与安全.......................................................................................237
如何让一个数据库变得安全....................................................................................237
Personal Oracle7 与安全..........................................................................................238
创建用户.........................................................................................................238
创建角色.........................................................................................................240
用户权限.........................................................................................................242
为安全的目的而使用视图................................................................................247
总结.......................................................................................................................251
问与答...................................................................................................................252
校练场...................................................................................................................252
练习.......................................................................................................................253
第13 天高级 SQL.................................................................................................................254
目标...................................................................................................................254
临时表...................................................................................................................254
Title ................................................................................................................257
游标.......................................................................................................................259
创建游标.........................................................................................................260
打开游标.........................................................................................................260
使用游标来进行翻阅.......................................................................................261
测试游标的状态..............................................................................................262
关闭游标.........................................................................................................263
游标的适用范围..............................................................................................264
创建和使用存贮过程..............................................................................................265
在存贮过程中使用参数....................................................................................267
SQL 21 日自学通(V1.0) 翻译人笨猪
EMAIL wyhsillypig@163.com 7
删除一个存贮过程...........................................................................................269
存贮过程的嵌套..............................................................................................270
设计和使用触发机制..............................................................................................272
触发机制与事务处理.......................................................................................273
使用触发机制时的限制....................................................................................275
触发机制的嵌套..............................................................................................275
在选择语句中使用更新和删除................................................................................275
在执行前测试选择语句....................................................................................276
嵌入型SQL............................................................................................................277
静态SQL 与动态SQL.....................................................................................277
使用SQL 来编程....................................................................................................279
总结.......................................................................................................................280
问与答...................................................................................................................280
校练场...................................................................................................................280
练习.......................................................................................................................281
第14 天动态使用SQL ........................................................................................................282
目标.......................................................................................................................282
快速入门................................................................................................................282
ODBC .............................................................................................................282
Personal Oracle 7..............................................................................................283
InterBase SQL ISQL ...................................................................................283
Visual C++ ......................................................................................................284
Delphi.............................................................................................................284
设置.......................................................................................................................284
创建数据库............................................................................................................285
使用MS QUERY 来完成链接..................................................................................290
将VISUAL C++与SQL 结合使用...........................................................................292
将DELPHI 与SQL 结合使用..................................................................................296
总结.......................................................................................................................302
问与答...................................................................................................................303
校练场...................................................................................................................303
练习.......................................................................................................................303
第二周回顾............................................................................................................................304
第三周概貌..................................................................................................................
下载地址
 下载地址1
按字母检索

下载须知:
大部份资源无需注册即可下载
需要积分的资源要在会员中心注册会员并用 积分体系中提示的方法赚取积分才能下载。

免责声明:
所有资源只能用于参考学习,不能用于任何商业用途,否则后果自负!