目录

    封面

    扉页

    内容提要

    关于作者

    第一部分 SQL概念综述

    1. [第1 欢迎来到SQL世界]($text-part0005.html#a006)
    2. [1.1 SQL定义及历史]($text-part0005.html#a007)
    3. [1.1.1 什么是SQL]($text-part0005.html#a008)
    4. [1.1.2 什么是ANSI SQL]($text-part0005.html#a009)
    5. [1.1.3 新标准:SQL-2008]($text-part0005.html#a010)
    6. [1.1.4 什么是数据库]($text-part0005.html#a011)
    7. [1.1.5 关系型数据库]($text-part0005.html#a012)
    8. [1.1.6 客户端/服务器技术]($text-part0005.html#a013)
    9. [1.1.7 基于Web的数据库系统]($text-part0005.html#a014)
    10. [1.1.8 主流数据库厂商]($text-part0005.html#a015)
    11. [1.2 SQL会话]($text-part0005.html#a016)
    12. [1.2.1 CONNECT]($text-part0005.html#a017)
    13. [1.2.2 DISCONNECTEXIT]($text-part0005.html#a018)
    14. [1.3 SQL命令的类型]($text-part0005.html#a019)
    15. [1.3.1 定义数据库结构]($text-part0005.html#a020)
    16. [1.3.2 操作数据]($text-part0005.html#a021)
    17. [1.3.3 选择数据]($text-part0005.html#a022)
    18. [1.3.4 数据控制语言]($text-part0005.html#a023)
    19. [1.3.5 数据管理命令]($text-part0005.html#a024)
    20. [1.3.6 事务控制命令]($text-part0005.html#a025)
    21. [1.4 本书使用的数据库]($text-part0005.html#a026)
    22. [1.4.1 表命名标准]($text-part0005.html#a027)
    23. [1.4.2 数据一瞥]($text-part0005.html#a028)
    24. [1.4.3 表的构成]($text-part0005.html#a029)
    25. [1.4.4 范例和练习]($text-part0005.html#a030)
    26. [1.5 小结]($text-part0005.html#a031)
    27. [1.6 问与答]($text-part0005.html#a032)
    28. [1.7 实践]($text-part0005.html#a033)
    29. [1.7.1 测验]($text-part0005.html#a034)
    30. [1.7.2 练习]($text-part0005.html#a035)

    第二部分 创建数据库

    1. [第2 定义数据结构]($text-part0006.html#a037)
    2. [2.1 数据是什么]($text-part0006.html#a038)
    3. [2.2 基本数据类型]($text-part0006.html#a039)
    4. [2.2.1 定长字符串]($text-part0006.html#a040)
    5. [2.2.2 变长字符串]($text-part0006.html#a041)
    6. [2.2.3 大对象类型]($text-part0006.html#a042)
    7. [2.2.4 数值类型]($text-part0006.html#a043)
    8. [2.2.5 小数类型]($text-part0006.html#a044)
    9. [2.2.6 整数]($text-part0006.html#a045)
    10. [2.2.7 浮点数]($text-part0006.html#a046)
    11. [2.2.8 日期和时间类型]($text-part0006.html#a047)
    12. [2.2.9 直义字符串]($text-part0006.html#a048)
    13. [2.2.10 NULL数据类型]($text-part0006.html#a049)
    14. [2.2.11 布尔值]($text-part0006.html#a050)
    15. [2.2.12 自定义类型]($text-part0006.html#a051)
    16. [2.2.13 域]($text-part0006.html#a052)
    17. [2.3 小结]($text-part0006.html#a053)
    18. [2.4 问与答]($text-part0006.html#a054)
    19. [2.5 实践]($text-part0006.html#a055)
    20. [2.5.1 测验]($text-part0006.html#a056)
    21. [2.5.2 练习]($text-part0006.html#a057)
    22. [第3 管理数据库对象]($text-part0006.html#a058)
    23. [3.1 什么是数据库对象]($text-part0006.html#a059)
    24. [3.2 什么是规划]($text-part0006.html#a060)
    25. [3.3 表:数据的主要存储方式]($text-part0006.html#a061)
    26. [3.3.1 列]($text-part0006.html#a062)
    27. [3.3.2 行]($text-part0006.html#a063)
    28. [3.3.3 CREATE TABLE语句]($text-part0006.html#a064)
    29. [3.3.4 命名规范]($text-part0006.html#a065)
    30. [3.3.5 ALTER TABLE命令]($text-part0006.html#a066)
    31. [3.3.6 从现有表新建另一个表]($text-part0006.html#a067)
    32. [3.3.7 删除表]($text-part0006.html#a068)
    33. [3.4 完整性约束]($text-part0006.html#a069)
    34. [3.4.1 主键约束]($text-part0006.html#a070)
    35. [3.4.2 唯一性约束]($text-part0006.html#a071)
    36. [3.4.3 外键约束]($text-part0006.html#a072)
    37. [3.4.4 NOT NULL约束]($text-part0006.html#a073)
    38. [3.4.5 检查约束]($text-part0006.html#a074)
    39. [3.4.6 去除约束]($text-part0006.html#a075)
    40. [3.5 小结]($text-part0006.html#a076)
    41. [3.6 问与答]($text-part0006.html#a077)
    42. [3.7 实践]($text-part0006.html#a078)
    43. [3.7.1 测验]($text-part0006.html#a079)
    44. [3.7.2 练习]($text-part0006.html#a080)
    45. [第4 规格化过程]($text-part0006.html#a081)
    46. [4.1 规格化数据库]($text-part0006.html#a082)
    47. [4.1.1 原始数据库]($text-part0006.html#a083)
    48. [4.1.2 数据库逻辑设计]($text-part0006.html#a084)
    49. [4.1.3 规格形式]($text-part0006.html#a085)
    50. [4.1.4 命名规范]($text-part0006.html#a086)
    51. [4.1.5 规格化的优点]($text-part0006.html#a087)
    52. [4.1.6 规格化的缺点]($text-part0006.html#a088)
    53. [4.2 去规格化数据库]($text-part0006.html#a089)
    54. [4.3 小结]($text-part0006.html#a090)
    55. [4.4 问与答]($text-part0006.html#a091)
    56. [4.5 实践]($text-part0006.html#a092)
    57. [4.5.1 测验]($text-part0006.html#a093)
    58. [4.5.2 练习]($text-part0006.html#a094)
    59. [第5 操作数据]($text-part0006.html#a095)
    60. [5.1 数据操作概述]($text-part0006.html#a096)
    61. [5.2 用新数据填充表]($text-part0006.html#a097)
    62. [5.2.1 把数据插入到表]($text-part0006.html#a098)
    63. [5.2.2 给表里指定列插入数据]($text-part0006.html#a099)
    64. [5.2.3 从另一个表插入数据]($text-part0006.html#a100)
    65. [5.2.4 插入NULL值]($text-part0006.html#a101)
    66. [5.3 更新现有数据]($text-part0006.html#a102)
    67. [5.3.1 更新一列的数据]($text-part0006.html#a103)
    68. [5.3.2 更新一条或多记录里的多个字段]($text-part0006.html#a104)
    69. [5.4 从表里删除数据]($text-part0006.html#a105)
    70. [5.5 小结]($text-part0006.html#a106)
    71. [5.6 问与答]($text-part0006.html#a107)
    72. [5.7 实践]($text-part0006.html#a108)
    73. [5.7.1 测验]($text-part0006.html#a109)
    74. [5.7.2 练习]($text-part0006.html#a110)
    75. [第6 管理数据库事务]($text-part0006.html#a111)
    76. [6.1 什么是事务]($text-part0006.html#a112)
    77. [6.2 控制事务]($text-part0006.html#a113)
    78. [6.2.1 COMMIT命令]($text-part0006.html#a114)
    79. [6.2.2 ROLLBACK命令]($text-part0006.html#a115)
    80. [6.2.3 SAVEPOINT命令]($text-part0006.html#a116)
    81. [6.2.4 ROLLBACK TO SAVEPOINT命令]($text-part0006.html#a117)
    82. [6.2.5 RELEASE SAVEPOINT命令]($text-part0006.html#a118)
    83. [6.2.6 SET TRANSACTION命令]($text-part0006.html#a119)
    84. [6.3 事务控制与数据库性能]($text-part0006.html#a120)
    85. [6.4 小结]($text-part0006.html#a121)
    86. [6.5 问与答]($text-part0006.html#a122)
    87. [6.6 实践]($text-part0006.html#a123)
    88. [6.6.1 测验]($text-part0006.html#a124)
    89. [6.6.2 练习]($text-part0006.html#a125)

    第三部分 从查询中获得有效的结果

    1. [第7 数据库查询]($text-part0007.html#a127)
    2. [7.1 什么是查询]($text-part0007.html#a128)
    3. [7.2 SELECT语句]($text-part0007.html#a129)
    4. [7.2.1 SELECT语句]($text-part0007.html#a130)
    5. [7.2.2 FROM子句]($text-part0007.html#a131)
    6. [7.2.3 WHERE子句]($text-part0007.html#a132)
    7. [7.2.4 ORDER BY子句]($text-part0007.html#a133)
    8. [7.2.5 大小写敏感性]($text-part0007.html#a134)
    9. [7.3 简单查询的范例]($text-part0007.html#a135)
    10. [7.3.1 统计表里的记录数量]($text-part0007.html#a136)
    11. [7.3.2 从另一个用户表里选择数据]($text-part0007.html#a137)
    12. [7.3.3 使用字段别名]($text-part0007.html#a138)
    13. [7.4 小结]($text-part0007.html#a139)
    14. [7.5 问与答]($text-part0007.html#a140)
    15. [7.6 实践]($text-part0007.html#a141)
    16. [7.6.1 测验]($text-part0007.html#a142)
    17. [7.6.2 练习]($text-part0007.html#a143)
    18. [第8 使用操作符对数据进行分类]($text-part0007.html#a144)
    19. [8.1 什么是SQL里的操作符]($text-part0007.html#a145)
    20. [8.2 比较操作符]($text-part0007.html#a146)
    21. [8.2.1 相等]($text-part0007.html#a147)
    22. [8.2.2 不等于]($text-part0007.html#a148)
    23. [8.2.3 小于和大于]($text-part0007.html#a149)
    24. [8.2.4 比较操作符的组合]($text-part0007.html#a150)
    25. [8.3 逻辑操作符]($text-part0007.html#a151)
    26. [8.3.1 IS NULL]($text-part0007.html#a152)
    27. [8.3.2 BETWEEN]($text-part0007.html#a153)
    28. [8.3.3 IN]($text-part0007.html#a154)
    29. [8.3.4 LIKE]($text-part0007.html#a155)
    30. [8.3.5 EXISTS]($text-part0007.html#a156)
    31. [8.3.6 ALLSOMEANY操作符]($text-part0007.html#a157)
    32. [8.4 连接操作符]($text-part0007.html#a158)
    33. [8.4.1 AND]($text-part0007.html#a159)
    34. [8.4.2 OR]($text-part0007.html#a160)
    35. [8.5 求反操作符]($text-part0007.html#a161)
    36. [8.5.1 不相等]($text-part0007.html#a162)
    37. [8.5.2 NOT BETWEEN]($text-part0007.html#a163)
    38. [8.5.3 NOT IN]($text-part0007.html#a164)
    39. [8.5.4 NOT LIKE]($text-part0007.html#a165)
    40. [8.5.5 IS NOT NULL]($text-part0007.html#a166)
    41. [8.5.6 NOT EXISTS]($text-part0007.html#a167)
    42. [8.6 算术操作符]($text-part0007.html#a168)
    43. [8.6.1 加法]($text-part0007.html#a169)
    44. [8.6.2 减法]($text-part0007.html#a170)
    45. [8.6.3 乘法]($text-part0007.html#a171)
    46. [8.6.4 除法]($text-part0007.html#a172)
    47. [8.6.5 算术操作符的组合]($text-part0007.html#a173)
    48. [8.7 小结]($text-part0007.html#a174)
    49. [8.8 问与答]($text-part0007.html#a175)
    50. [8.9 实践]($text-part0007.html#a176)
    51. [8.9.1 测验]($text-part0007.html#a177)
    52. [8.9.2 练习]($text-part0007.html#a178)
    53. [第9 汇总查询得到的数据]($text-part0007.html#a179)
    54. [9.1 什么是汇总函数]($text-part0007.html#a180)
    55. [9.1.1 COUNT函数]($text-part0007.html#a181)
    56. [9.1.2 SUM函数]($text-part0007.html#a182)
    57. [9.1.3 AVG函数]($text-part0007.html#a183)
    58. [9.1.4 MAX函数]($text-part0007.html#a184)
    59. [9.1.5 MIN函数]($text-part0007.html#a185)
    60. [9.2 小结]($text-part0007.html#a186)
    61. [9.3 问与答]($text-part0007.html#a187)
    62. [9.4 实践]($text-part0007.html#a188)
    63. [9.4.1 测验]($text-part0007.html#a189)
    64. [9.4.2 练习]($text-part0007.html#a190)
    65. [第10 数据排序与分组]($text-part0007.html#a191)
    66. [10.1 为什么要对数据进行分组]($text-part0007.html#a192)
    67. [10.2 GROUP BY子句]($text-part0007.html#a193)
    68. [10.2.1 分组函数]($text-part0007.html#a194)
    69. [10.2.2 对选中的数据进行分组]($text-part0007.html#a195)
    70. [10.2.3 创建分组和使用汇总函数]($text-part0007.html#a196)
    71. [10.2.4 以整数代表字段名称]($text-part0007.html#a197)
    72. [10.3 GROUP BYORDER BY]($text-part0007.html#a198)
    73. [10.4 CUBEROLLUP语句]($text-part0007.html#a199)
    74. [10.5 HAVING子句]($text-part0007.html#a200)
    75. [10.6 小结]($text-part0007.html#a201)
    76. [10.7 问与答]($text-part0007.html#a202)
    77. [10.8 实践]($text-part0007.html#a203)
    78. [10.8.1 测验]($text-part0007.html#a204)
    79. [10.8.2 练习]($text-part0007.html#a205)
    80. [第11 调整数据的外观]($text-part0007.html#a206)
    81. [11.1 ANSI字符函数]($text-part0007.html#a207)
    82. [11.2 常用字符函数]($text-part0007.html#a208)
    83. [11.2.1 串接函数]($text-part0007.html#a209)
    84. [11.2.2 TRANSLATE函数]($text-part0007.html#a210)
    85. [11.2.3 REPLACE]($text-part0007.html#a211)
    86. [11.2.4 UPPER]($text-part0007.html#a212)
    87. [11.2.5 LOWER]($text-part0007.html#a213)
    88. [11.2.6 SUBSTR]($text-part0007.html#a214)
    89. [11.2.7 INSTR]($text-part0007.html#a215)
    90. [11.2.8 LTRIM]($text-part0007.html#a216)
    91. [11.2.9 RTRIM]($text-part0007.html#a217)
    92. [11.2.10 DECODE]($text-part0007.html#a218)
    93. [11.3 其他字符函数]($text-part0007.html#a219)
    94. [11.3.1 LENGTH]($text-part0007.html#a220)
    95. [11.3.2 IFNULL(检查NULL值)]($text-part0007.html#a221)
    96. [11.3.3 COALESCE]($text-part0007.html#a222)
    97. [11.3.4 LPAD]($text-part0007.html#a223)
    98. [11.3.5 RPAD]($text-part0007.html#a224)
    99. [11.3.6 ASCII]($text-part0007.html#a225)
    100. [11.4 算术函数]($text-part0007.html#a226)
    101. [11.5 转换函数]($text-part0007.html#a227)
    102. [11.5.1 字符串转换为数字]($text-part0007.html#a228)
    103. [11.5.2 数字转换为字符串]($text-part0007.html#a229)
    104. [11.6 字符函数的组合使用]($text-part0007.html#a230)
    105. [11.7 小结]($text-part0007.html#a231)
    106. [11.8 问与答]($text-part0007.html#a232)
    107. [11.9 实践]($text-part0007.html#a233)
    108. [11.9.1 测验]($text-part0007.html#a234)
    109. [11.9.2 练习]($text-part0007.html#a235)
    110. [第12 日期和时间]($text-part0007.html#a236)
    111. [12.1 日期是如何存储的]($text-part0007.html#a237)
    112. [12.1.1 日期和时间的标准数据类型]($text-part0007.html#a238)
    113. [12.1.2 DATETIME元素]($text-part0007.html#a239)
    114. [12.1.3 不同实现的日期类型]($text-part0007.html#a240)
    115. [12.2 日期函数]($text-part0007.html#a241)
    116. [12.2.1 当前日期]($text-part0007.html#a242)
    117. [12.2.2 时区]($text-part0007.html#a243)
    118. [12.2.3 时间与日期相加]($text-part0007.html#a244)
    119. [12.2.4 其他日期函数]($text-part0007.html#a245)
    120. [12.3 日期转换]($text-part0007.html#a246)
    121. [12.3.1 日期描述]($text-part0007.html#a247)
    122. [12.3.2 日期转换为字符串]($text-part0007.html#a248)
    123. [12.3.3 字符串转换为日期]($text-part0007.html#a249)
    124. [12.4 小结]($text-part0007.html#a250)
    125. [12.5 问与答]($text-part0007.html#a251)
    126. [12.6 实践]($text-part0007.html#a252)
    127. [12.6.1 测验]($text-part0007.html#a253)
    128. [12.6.2 练习]($text-part0007.html#a254)

    第四部分 创建复杂的数据库查询

    1. [第13 在查询里结合表]($text-part0008.html#a256)
    2. [13.1 从多个表获取数据]($text-part0008.html#a257)
    3. [13.2 结合的类型]($text-part0008.html#a258)
    4. [13.2.1 结合条件的位置]($text-part0008.html#a259)
    5. [13.2.2 等值结合]($text-part0008.html#a260)
    6. [13.2.3 使用表的别名]($text-part0008.html#a261)
    7. [13.2.4 不等值结合]($text-part0008.html#a262)
    8. [13.2.5 外部结合]($text-part0008.html#a263)
    9. [13.2.6 自结合]($text-part0008.html#a264)
    10. [13.2.7 结合多个主键]($text-part0008.html#a265)
    11. [13.3 需要考虑的事项]($text-part0008.html#a266)
    12. [13.3.1 使用基表]($text-part0008.html#a267)
    13. [13.3.2 笛卡尔积]($text-part0008.html#a268)
    14. [13.4 小结]($text-part0008.html#a269)
    15. [13.5 问与答]($text-part0008.html#a270)
    16. [13.6 实践]($text-part0008.html#a271)
    17. [13.6.1 测验]($text-part0008.html#a272)
    18. [13.6.2 练习]($text-part0008.html#a273)
    19. [第14 使用子查询定义未确定数据]($text-part0008.html#a274)
    20. [14.1 什么是子查询]($text-part0008.html#a275)
    21. [14.1.1 子查询与SELECT语句]($text-part0008.html#a276)
    22. [14.1.2 子查询与INSERT语句]($text-part0008.html#a277)
    23. [14.1.3 子查询与UPDATE语句]($text-part0008.html#a278)
    24. [14.1.4 子查询与DELETE语句]($text-part0008.html#a279)
    25. [14.2 嵌套的子查询]($text-part0008.html#a280)
    26. [14.3 关联子查询]($text-part0008.html#a281)
    27. [14.4 子查询的效率]($text-part0008.html#a282)
    28. [14.5 小结]($text-part0008.html#a283)
    29. [14.6 问与答]($text-part0008.html#a284)
    30. [14.7 实践]($text-part0008.html#a285)
    31. [14.7.1 测验]($text-part0008.html#a286)
    32. [14.7.2 练习]($text-part0008.html#a287)
    33. [第15 组合多个查询]($text-part0008.html#a288)
    34. [15.1 单查询与组合查询]($text-part0008.html#a289)
    35. [15.2 组合查询操作符]($text-part0008.html#a290)
    36. [15.2.1 UNION]($text-part0008.html#a291)
    37. [15.2.2 UNION ALL]($text-part0008.html#a292)
    38. [15.2.3 INTERSECT]($text-part0008.html#a293)
    39. [15.2.4 EXCEPT]($text-part0008.html#a294)
    40. [15.3 组合查询里使用ORDER BY]($text-part0008.html#a295)
    41. [15.4 组合查询里使用GROUP BY]($text-part0008.html#a296)
    42. [15.5 获取准确的数据]($text-part0008.html#a297)
    43. [15.6 小结]($text-part0008.html#a298)
    44. [15.7 问与答]($text-part0008.html#a299)
    45. [15.8 实践]($text-part0008.html#a300)
    46. [15.8.1 测验]($text-part0008.html#a301)
    47. [15.8.2 练习]($text-part0008.html#a302)

    第五部分 SQL性能调整

    1. [第16 利用索引改善性能]($text-part0009.html#a304)
    2. [16.1 什么是索引]($text-part0009.html#a305)
    3. [16.2 索引是如何工作的]($text-part0009.html#a306)
    4. [16.3 CREATE INDEX命令]($text-part0009.html#a307)
    5. [16.4 索引的类型]($text-part0009.html#a308)
    6. [16.4.1 单字段索引]($text-part0009.html#a309)
    7. [16.4.2 唯一索引]($text-part0009.html#a310)
    8. [16.4.3 组合索引]($text-part0009.html#a311)
    9. [16.4.4 隐含索引]($text-part0009.html#a312)
    10. [16.5 何时考虑使用索引]($text-part0009.html#a313)
    11. [16.6 何时应该避免使用索引]($text-part0009.html#a314)
    12. [16.7 修改索引]($text-part0009.html#a315)
    13. [16.8 删除索引]($text-part0009.html#a316)
    14. [16.9 小结]($text-part0009.html#a317)
    15. [16.10 问与答]($text-part0009.html#a318)
    16. [16.11 实践]($text-part0009.html#a319)
    17. [16.11.1 测验]($text-part0009.html#a320)
    18. [16.11.2 练习]($text-part0009.html#a321)
    19. [第17 改善数据库性能]($text-part0009.html#a322)
    20. [17.1 什么是SQL语句调整]($text-part0009.html#a323)
    21. [17.2 数据库调整与SQL语句调整]($text-part0009.html#a324)
    22. [17.3 格式化SQL语句]($text-part0009.html#a325)
    23. [17.3.1 为提高可读性格式化SQL语句]($text-part0009.html#a326)
    24. [17.3.2 FROM子句里的表]($text-part0009.html#a327)
    25. [17.3.3 结合条件的次序]($text-part0009.html#a328)
    26. [17.3.4 最严格条件]($text-part0009.html#a329)
    27. [17.4 全表扫描]($text-part0009.html#a330)
    28. [17.5 其他性能考虑]($text-part0009.html#a331)
    29. [17.5.1 使用LIKE操作符和通配符]($text-part0009.html#a332)
    30. [17.5.2 避免使用OR操作符]($text-part0009.html#a333)
    31. [17.5.3 避免使用HAVING子句]($text-part0009.html#a334)
    32. [17.5.4 避免大规模排序操作]($text-part0009.html#a335)
    33. [17.5.5 使用存储过程]($text-part0009.html#a336)
    34. [17.5.6 在批加载时关闭索引]($text-part0009.html#a337)
    35. [17.6 基于成本的优化]($text-part0009.html#a338)
    36. [17.7 性能工具]($text-part0009.html#a339)
    37. [17.8 小结]($text-part0009.html#a340)
    38. [17.9 问与答]($text-part0009.html#a341)
    39. [17.10 实践]($text-part0009.html#a342)
    40. [17.10.1 测验]($text-part0009.html#a343)
    41. [17.10.2 练习]($text-part0009.html#a344)

    第六部分 使用SQL管理用户和安全

    1. [第18 管理数据库用户]($text-part0010.html#a346)
    2. [18.1 数据库的用户管理]($text-part0010.html#a347)
    3. [18.1.1 用户的类型]($text-part0010.html#a348)
    4. [18.1.2 谁管理用户]($text-part0010.html#a349)
    5. [18.1.3 用户在数据库里的位置]($text-part0010.html#a350)
    6. [18.1.4 不同规划里的用户]($text-part0010.html#a351)
    7. [18.2 管理过程]($text-part0010.html#a352)
    8. [18.2.1 创建用户]($text-part0010.html#a353)
    9. [18.2.2 创建规划]($text-part0010.html#a354)
    10. [18.2.3 删除规划]($text-part0010.html#a355)
    11. [18.2.4 调整用户]($text-part0010.html#a356)
    12. [18.2.5 用户会话]($text-part0010.html#a357)
    13. [18.2.6 禁止用户访问]($text-part0010.html#a358)
    14. [18.3 数据库用户使用的工具]($text-part0010.html#a359)
    15. [18.4 小结]($text-part0010.html#a360)
    16. [18.5 问与答]($text-part0010.html#a361)
    17. [18.6 实践]($text-part0010.html#a362)
    18. [18.6.1 测验]($text-part0010.html#a363)
    19. [18.6.2 练习]($text-part0010.html#a364)
    20. [第19 管理数据库安全]($text-part0010.html#a365)
    21. [19.1 什么是数据库安全]($text-part0010.html#a366)
    22. [19.2 什么是权限]($text-part0010.html#a367)
    23. [19.2.1 系统权限]($text-part0010.html#a368)
    24. [19.2.2 对象权限]($text-part0010.html#a369)
    25. [19.2.3 谁负责授予和撤销权限]($text-part0010.html#a370)
    26. [19.3 控制用户访问]($text-part0010.html#a371)
    27. [19.3.1 GRANT命令]($text-part0010.html#a372)
    28. [19.3.2 REVOKE命令]($text-part0010.html#a373)
    29. [19.3.3 控制对单独字段的访问]($text-part0010.html#a374)
    30. [19.3.4 数据库账户PUBLIC]($text-part0010.html#a375)
    31. [19.3.5 权限组]($text-part0010.html#a376)
    32. [19.4 通过角色控制权限]($text-part0010.html#a377)
    33. [19.4.1 CREATE ROLE语句]($text-part0010.html#a378)
    34. [19.4.2 DROP ROLE语句]($text-part0010.html#a379)
    35. [19.4.3 SET ROLE语句]($text-part0010.html#a380)
    36. [19.5 小结]($text-part0010.html#a381)
    37. [19.6 问与答]($text-part0010.html#a382)
    38. [19.7 实践]($text-part0010.html#a383)
    39. [19.7.1 测验]($text-part0010.html#a384)
    40. [19.7.2 练习]($text-part0010.html#a385)

    第七部分 摘要数据结构

    1. [第20 创建和使用视图及异名]($text-part0011.html#a387)
    2. [20.1 什么是视图]($text-part0011.html#a388)
    3. [20.1.1 使用视图来简化数据访问]($text-part0011.html#a389)
    4. [20.1.2 使用视图作为一种安全角式]($text-part0011.html#a390)
    5. [20.1.3 使用视图维护摘要数据]($text-part0011.html#a391)
    6. [20.2 创建视图]($text-part0011.html#a392)
    7. [20.2.1 从一个表创建视图]($text-part0011.html#a393)
    8. [20.2.2 从多个表创建视图]($text-part0011.html#a394)
    9. [20.2.3 从视图创建视图]($text-part0011.html#a395)
    10. [20.3 WITH CHECK OPTION]($text-part0011.html#a396)
    11. [20.4 从视图创建表]($text-part0011.html#a397)
    12. [20.5 视图与ORDER BY子句]($text-part0011.html#a398)
    13. [20.6 通过视图更新数据]($text-part0011.html#a399)
    14. [20.7 删除视图]($text-part0011.html#a400)
    15. [20.8 嵌套视图对性能的影响]($text-part0011.html#a401)
    16. [20.9 什么是异名]($text-part0011.html#a402)
    17. [20.9.1 创建异名]($text-part0011.html#a403)
    18. [20.9.2 删除异名]($text-part0011.html#a404)
    19. [20.10 小结]($text-part0011.html#a405)
    20. [20.11 问与答]($text-part0011.html#a406)
    21. [20.12 实践]($text-part0011.html#a407)
    22. [20.12.1 测验]($text-part0011.html#a408)
    23. [20.12.2 练习]($text-part0011.html#a409)
    24. [第21 使用系统目录]($text-part0011.html#a410)
    25. [21.1 什么是系统目录]($text-part0011.html#a411)
    26. [21.2 如何创建系统目录]($text-part0011.html#a412)
    27. [21.3 系统目录里包含什么内容]($text-part0011.html#a413)
    28. [21.3.1 用户数据]($text-part0011.html#a414)
    29. [21.3.2 安全信息]($text-part0011.html#a415)
    30. [21.3.3 数据库设计信息]($text-part0011.html#a416)
    31. [21.3.4 性能统计]($text-part0011.html#a417)
    32. [21.4 不同实现里的系统目录表格]($text-part0011.html#a418)
    33. [21.5 查询系统目录]($text-part0011.html#a419)
    34. [21.6 更新系统目录对象]($text-part0011.html#a420)
    35. [21.7 小结]($text-part0011.html#a421)
    36. [21.8 问与答]($text-part0011.html#a422)
    37. [21.9 实践]($text-part0011.html#a423)
    38. [21.9.1 测验]($text-part0011.html#a424)
    39. [21.9.2 练习]($text-part0011.html#a425)

    第八部分 在实际工作中应用SQL知识

    1. [第22 高级SQL主题]($text-part0012.html#a427)
    2. [22.1 光标]($text-part0012.html#a428)
    3. [22.1.1 打开光标]($text-part0012.html#a429)
    4. [22.1.2 从光标获取数据]($text-part0012.html#a430)
    5. [22.1.3 关闭光标]($text-part0012.html#a431)
    6. [22.2 存储过程和函数]($text-part0012.html#a432)
    7. [22.3 触发器]($text-part0012.html#a433)
    8. [22.3.1 CREATE TRIGGER语句]($text-part0012.html#a434)
    9. [22.3.2 DROP TRIGGER语句]($text-part0012.html#a435)
    10. [22.3.3 FOR EACH ROW语句]($text-part0012.html#a436)
    11. [22.4 动态SQL]($text-part0012.html#a437)
    12. [22.5 调用级接口]($text-part0012.html#a438)
    13. [22.6 使用SQL生成SQL]($text-part0012.html#a439)
    14. [22.7 直接SQL与嵌入SQL]($text-part0012.html#a440)
    15. [22.8 窗口表格函数]($text-part0012.html#a441)
    16. [22.9 使用XML]($text-part0012.html#a442)
    17. [22.10 小结]($text-part0012.html#a443)
    18. [22.11 问与答]($text-part0012.html#a444)
    19. [22.12 实践]($text-part0012.html#a445)
    20. [22.12.1 测验]($text-part0012.html#a446)
    21. [22.12.2 练习]($text-part0012.html#a447)
    22. [第23 SQL扩展到企业、互联网和内部网]($text-part0012.html#a448)
    23. [23.1 SQL与企业]($text-part0012.html#a449)
    24. [23.1.1 后台程序]($text-part0012.html#a450)
    25. [23.1.2 前台程序]($text-part0012.html#a451)
    26. [23.2 访问远程数据库]($text-part0012.html#a452)
    27. [23.2.1 ODBC]($text-part0012.html#a453)
    28. [23.2.2 JDBC]($text-part0012.html#a454)
    29. [23.2.3 OLE DB]($text-part0012.html#a455)
    30. [23.2.4 厂商连接产品]($text-part0012.html#a456)
    31. [23.2.5 通过Web接口访问远程数据库]($text-part0012.html#a457)
    32. [23.3 SQL与互联网]($text-part0012.html#a458)
    33. [23.3.1 让数据可以被全世界的顾客使用]($text-part0012.html#a459)
    34. [23.3.2 向雇员和授权顾客提供数据]($text-part0012.html#a460)
    35. [23.4 SQL与内部网]($text-part0012.html#a461)
    36. [23.5 小结]($text-part0012.html#a462)
    37. [23.6 问与答]($text-part0012.html#a463)
    38. [23.7 实践]($text-part0012.html#a464)
    39. [23.7.1 测验]($text-part0012.html#a465)
    40. [23.7.2 练习]($text-part0012.html#a466)
    41. [第24 标准SQL的扩展]($text-part0012.html#a467)
    42. [24.1 各种实现]($text-part0012.html#a468)
    43. [24.1.1 不同实现之间的区别]($text-part0012.html#a469)
    44. [24.1.2 遵循ANSI SQL]($text-part0012.html#a470)
    45. [24.1.3 SQL的扩展]($text-part0012.html#a471)
    46. [24.2 扩展范例]($text-part0012.html#a472)
    47. [24.2.1 Transact-SQL]($text-part0012.html#a473)
    48. [24.2.2 PL/SQL]($text-part0012.html#a474)
    49. [24.2.3 MySQL]($text-part0012.html#a475)
    50. [24.3 交互SQL语句]($text-part0012.html#a476)
    51. [24.4 小结]($text-part0012.html#a477)
    52. [24.5 问与答]($text-part0012.html#a478)
    53. [24.6 实践]($text-part0012.html#a479)
    54. [24.6.1 测验]($text-part0012.html#a480)
    55. [24.6.2 练习]($text-part0012.html#a481)

    第九部分 附录

    1. [附录A 常用SQL命令]($text-part0013.html#a483)
    2. [A.1 SQL语句]($text-part0013.html#a484)
    3. [A.2 SQL子句]($text-part0013.html#a485)
    4. [附录B 使用数据库进行练习]($text-part0013.html#a486)
    5. [B.1 Windows操作系统中安装MySQL的指令]($text-part0013.html#a487)
    6. [B.2 Windows操作系统中安装Oracle的指令]($text-part0013.html#a488)
    7. [B.3 Windows操作系统中安装Microsoft SQL Server的指令]($text-part0013.html#a489)
    8. [附录C 测验和练习的答案]($text-part0013.html#a490)
    9. [附录D 本书范例的CREATE TABLE语句]($text-part0013.html#a491)
    10. [D.1 MySQL]($text-part0013.html#a492)
    11. [D.2 OracleSQL Server]($text-part0013.html#a493)
    12. [附录E 书中范例所涉数据的INSERT语句]($text-part0013.html#a494)
    13. [E.1 MySQLSQL Server]($text-part0013.html#a495)
    14. [E.1.1 EMPLOYEE_TBL]($text-part0013.html#a496)
    15. [E.1.2 EMPLOYEE_PAY_TBL]($text-part0013.html#a497)
    16. [E.1.3 CUSTOMER_TBL]($text-part0013.html#a498)
    17. [E.1.4 ORDERS_TBL]($text-part0013.html#a499)
    18. [E.1.5 PRODUCTS_TBL]($text-part0013.html#a500)
    19. [E.2 Oracle]($text-part0013.html#a501)
    20. [E.2.1 EMPLOYEE_TBL]($text-part0013.html#a502)
    21. [E.2.2 EMPLOYEE_PAY_TBL]($text-part0013.html#a503)
    22. [E.2.3 CUSTOMER_TBL]($text-part0013.html#a504)
    23. [E.2.4 ORDERS_TBL]($text-part0013.html#a505)
    24. [E.2.5 PRODUCTS_TBL]($text-part0013.html#a506)
    25. [附录F 额外练习]($text-part0013.html#a507)
    26. [术语表]($text-part0013.html#a508)

    其他

    版权