目 录
第
1
章
MySQL
概述
..........................................................................................................................
1
1.1 MySQL
简介
.........................................................................................................................
1
1.2 MySQL
安装
.........................................................................................................................
1
第
2
章
MySQL
存取权限系统
..........................................................................................................
4
2.1 MySQL
用户名和口令
.........................................................................................................
4
2.2
连接
MySQL
服务器
............................................................................................................
4
2.3 MySQL
权限信息
.................................................................................................................
4
2.4
权限系统工作原理
...............................................................................................................
5
2.5
设置
MySQL
初始权限
........................................................................................................
7
2.6
增加
MySQL
新用户权限
....................................................................................................
7
第
3
章
MySQL
语言参考
................................................................................................................
10
3.1
字符串
.................................................................................................................................
10
3.2
数字
.....................................................................................................................................
10
3.3
命名
.....................................................................................................................................
10
3.4
列类型
.................................................................................................................................
11
3.5
函数
.....................................................................................................................................
11
第
4
章
MySQL
语法
........................................................................................................................
16
4.1 CREATE DATABASE
句法
...............................................................................................
16
4.2 USE DATABASE
句法
.......................................................................................................
16
4.3 DROP DATABASE
句法
....................................................................................................
16
4.4 CREATE TABLE
句法
.......................................................................................................
17
4.5 ALTER TABLE
句法
..........................................................................................................
17
4.6 DROP TABLE
句法
............................................................................................................
18
4.7 INSERT
句法
......................................................................................................................
18
4.8 SELECT
句法
.....................................................................................................................
19
4.9 DELETE
句法
.....................................................................................................................
19
4.10 REPLACE
句法
................................................................................................................
20
4.11 LOAD DATA INFILE
句法
..............................................................................................
20
4.12 UPDATE
句法
...................................................................................................................
21
4.13 SHOW
句法
......................................................................................................................
21
4.14 DESCRIBE
句法
...............................................................................................................
21
4.15 LOCK UNLOCK TABLES
句法
.....................................................................................
22
4.16 GRANT
和
REVOKE
句法
..............................................................................................
22
4.17 CREATE INDEX
句法
.....................................................................................................
23
4.18 DROP INDEX
句法
..........................................................................................................
24
4.19
注释句法
...........................................................................................................................
24
第
5
章
MySQL
编程
........................................................................................................................
25
5.1
数据类型
.............................................................................................................................
25
5.2
函数接口
.............................................................................................................................
26
5.3
编程实例
.............................................................................................................................
32