《Microsoft SQL Server 6.5 Transact-SQL 参考手册》求取 ⇩

概述1

第1章 ALTER DATABASE语句1

1.1 语法1

1.2 说明2

1.3 许可权2

1.4 举例2

1.5 另见3

第2章 ALTER TABLE语句4

2.1 语法4

2.2 说明9

2.3 许可权9

2.4 举例9

2.5 另见10

第3章 批处理11

3.1 举例11

3.2 另见12

第4章 CASE表达式13

4.1 语法13

4.2 注释14

4.3 举例14

4.4 另见20

第5章 CHECKPOINT语句21

5.1 语法21

5.2 注释21

5.3 许可权21

5.4 另见21

第6章 注释23

6.1 语法23

6.2 说明23

6.3 举例23

第7章 流控制语言25

7.1 BEGIN...END块25

7.2 GOTO label26

7.3 IF...ELSE块26

7.4 RETURN语句27

7.5 WAITFOR语句28

7.6 WHIIE结构28

7.7 流控制举例29

7.8 另见33

第8章 CREATE DATABASE语句34

8.1 语法34

8.2 说明35

8.3 使用LOG ON子句36

8.4 许可权36

8.5 举例36

8.6 另见37

第9章 CREATE DEFAULT语句38

9.1 语法38

9.2 说明38

9.3 许可权39

9.4 举例39

9.5 另见39

第10章 CREATE INDEX语句41

10.1 语法41

10.2 说明45

10.3 许可权45

10.4 举例45

10.5 另见46

第11章 CREATE PROCEDURE语句47

11.1 语法47

11.2 说明48

11.3 许可权51

11.4 举例51

11.5 另见54

第12章 CREATE RULE语句56

12.1 语法56

12.2 说明56

12.3 许可权57

12.4 举例57

12.5 另见58

第13章 CREATE TABLE语句59

13.1 语法59

13.2 说明63

13.3 许可权66

13.4 举例66

13.5 另见70

第14章 CREATE TRIGGER语句71

14.1 语法71

14.2 说明72

14.3 许可权74

14.4 范例74

14.5 另见75

第15章 CREATE VIEW语句76

15.1 语法76

15.2 说明77

15.3 许可权78

15.4 范例78

15.5 另见79

第16章 光标80

16.1 语法80

16.2 光标范例84

16.3 另见92

第17章 数据类型93

17.1 在Transact-SQL语句中使用数据类型94

17.2 二进制数据95

17.3 字符数据95

17.4 日期和时间数据96

17.5 精确数值数据99

17.6 近似数值100

17.7 整数数据100

17.8 货币数据101

17.9 特殊数据类型101

17.10 文件和图像数据102

17.11 同义词103

17.12 另见104

第18章 DBCC语句105

18.1 语法105

18.2 许可权112

18.3 范例113

18.4 另见118

第19章 DECLARE语句119

19.1 语法119

19.2 范例119

19.3 另见119

第20章 DELETE语句121

20.1 语法121

20.2 说明121

20.3 许可权122

20.4 范例122

20.5 另见123

第21章 DISK INIT语句124

21.1 语法124

21.2 说明124

21.3 范例125

21.4 另见126

第22章 磁盘镜像127

22.1 DISK MIRROR语句127

22.2 DISK UNMIRROR语句128

22.3 DISK REMIRROR语句129

22.4 磁盘镜像范例129

22.5 另见130

第23章 DISK REFIT语句131

23.1 语法131

23.2 说明131

23.3 许可权131

23.4 另见131

第24章 DISK REINIT语句132

24.1 语法132

24.2 说明132

24.3 许可权133

24.4 范例133

24.5 另见133

第25章 DISK RESIZE语句134

25.1 语法134

25.2 说明134

25.3 许可权134

25.4 范例134

25.5 另见135

第26章 DROP DATABASE语句136

26.1 语法136

26.2 说明136

26.3 许可权136

26.4 范例136

26.5 另见137

第27章 DROP DEFAULT语句138

27.1 语法138

27.2 说明138

27.3 许可权138

27.4 范例138

27.5 另见139

第28章 DROP INDEX语句140

28.1 语法140

28.2 说明140

28.3 许可权140

28.4 范例140

28.5 另见141

第29章 DROP PROCEDURE语句142

29.1 语法142

29.2 说明142

29.3 许可权142

29.4 范例142

29.5 另见143

第30章 DROP RULE语句144

30.1 语法144

30.2 说明144

30.3 许可权144

30.4 范例144

30.5 另见144

第31章 DROP TABLE语句146

31.1 语法146

31.2 说明146

31.3 许可权146

31.4 范例146

31.5 另见147

第32章 DROP TRIGGER语句148

32.1 语法148

32.2 说明148

32.2 许可权148

32.4 范例148

32.5 另见148

第33章 DROP VIEW语句149

33.1 语法149

33.2 说明149

33.3 许可权149

33.4 范例149

33.5 另见149

第34章 DUMP语句150

34.1 语法150

34.2 说明153

34.3 许可权156

34.4 范例156

34.5 另见158

第35章 EXECUTE语句159

35.1 语法159

35.2 说明160

35.3 许可权161

35.4 范例161

35.5 另见163

第36章 表达式164

36.1 语法164

36.2 说明164

36.3 另见165

第37章 函数166

37.1 聚积函数167

32.2 CONVERT函数169

37.3 日期函数173

37.4 数学函数176

37.5 行聚积函数178

37.6 字符串函数181

37.7 系统函数185

37.8 文本和图像函数187

第38章 GRANT语句189

38.1 语法189

38.2 说明190

38.3 许可权191

38.4 范例192

38.5 另见193

第39章 标识符194

39.1 标识符规则194

39.2 作为对象名的标识符194

39.3 对象可见性(和限定)规则195

39.4 加引号的标识符195

39.5 范例195

39.6 另见197

第40章 INSERT语句198

40.1 语法198

40.2 说明199

40.3 许可权199

40.4 范例199

40.5 另见200

第41章 关键字201

41.1 保留字202

41.2 另见203

第42章 KILL语句204

42.1 语法204

42.2 说明204

42.3 许可权205

42.4 范例205

42.5 另见205

第43章 LOAD语句206

43.1 语法206

43.2 说明208

43.3 许可权209

43.4 范例209

43.5 另见210

第44章 空值211

44.1 语法211

44.2 说明211

44.3 范例213

44.4 另见214

第45章 运算符216

45.1 算术运算符216

45.2 位运算符216

45.3 比较运算符217

45.4 外连接运算217

45.5 字符串运算符218

45.6 运算符优先律218

45.7 运算符范例218

45.8 另见219

第46章 PRINT语句220

46.1 语法220

46.2 说明220

46.3 范例220

46.4 另见220

第47章 RAISERROR语句221

47.1 语法221

47.2 范例222

47.3 另见223

第48章 RECONFIGURE语句224

48.1 语法224

48.2 另见224

第49章 REVOKE误句225

49.1 语法225

49.2 说明226

49.3 范例226

49.4 另见226

第50章 搜索条件228

50.1 语法228

50.2 范例230

50.3 另见231

第51章 SELECT语句232

51.1 语法232

51.2 说明237

51.3 许可权238

51.4 另见238

51.5 范例238

第52章 SET语句243

52.1 语法243

52.2 说明246

52.3 范例246

52.4 另见249

第53章 SETUSER语句251

53.1 语法251

53.2 说明251

53.3 许可权251

53.4 范例252

53.5 另见252

第54章 SHUTDOWN语句253

54.1 语法253

54.2 说明253

54.3 许可权254

54.4 另见254

第55章 存储过程—目录存储过程255

55.1 sp_-column_privileges目录存储过程255

55.2 sp_columns目录存储过程257

55.3 sp_databases目录存储过程259

55.4 sp_datatype_info目录存储过程259

55.5 sp_fkeys目录存储过程260

55.6 sp-pkeys目录存储过程263

55.7 sp_server_server-info目录存储过程264

55.8 sp_special_columns目录存储过程266

55.9 sp_sproc_columns目录存储过程268

55.10 sp_statistics目录存储过程270

55.11 sp_stored_procedues目录存储过程272

55.12 sp_table_privileges目录存储过程273

55.13 sp_tables目录存储过程275

第56章 存储过程——扩展存储过程277

56.1 xp_cmdshell扩展存储过程278

56.2 xp_deletemail扩展存储过程279

56.3 xp-enumgroups扩展存储过程280

56.4 xp_findnextmsg扩展存储过程281

56.5 xp_grantlogin扩展存储过程282

56.6 xp_logevent扩展存储过程283

56.7 xp_loginconfig扩展存储过程284

56.8 xp_logininfo扩展存储过程286

56.9 xp_msver扩展存储过程287

56.10 xp_readmail扩展存储过程288

56.11 xp_revokelogin扩展存储过程291

56.12 xp_sendmail扩展存储过程291

56.13 xp_sprintf扩展存储过程294

56.14 xp_sscanf扩展存储过程295

56.15 xp_startmail扩展存储过程296

56.16 xp_stopmail扩展存储过程297

第57章 存储过程——复制存储过程298

57.1 sp_addarticle复制存储过程299

57.2 sp_addpublication复制存储过程301

57.3 sp_addpublisher复制存储过程302

57.4 sp_addsubscriber复制存储过程304

57.5 sp_addsubscription复制存储过程306

57.6 sp_articlecolumn复制存储过程307

57.7 sp_articlefilter复制存储过程308

57.8 sp_articleview复制存储过程309

57.9 sp_changearticle复制存储过程311

57.10 sp_changepublication复制存储过程313

57.11 sp_changesubscriber复制存储过程314

57.12 sp_changesubscription复制存储过程316

57.13 sp_changesubstatus复制存储过程317

57.14 sp_distcounters复制存储过程319

57.15 sp_droparticle复制存储过程320

57.16 sp_droppublication复制存储过程321

57.18 sp_droppublisher复制存储过程322

56.19 sp_dropsubscriber复制存储过程323

57.20 sp_dropsubscription复制存储过程323

57.21 sp_enumfullsubscribers复制存储过程324

57.22 sp_helparticle复制存储过程325

57.23 sp_helparticlecolumns复制存储过程326

57.24 sp_helpdistributor复制存储过程327

57.25 sp_helppublication复制存储过程328

57.26 sp_helppublicationsync复制存储过程329

57.27 sp_helpreplicationdb复制存储过程330

57.28 sp_helpsubscriberinfo复制存储过程330

57.29 sp_helpsubscription复制存储过程331

57.30 sp_MSkill_job复制存储过程332

57.31 sp_replcleanup复制存储过程333

57.32 sp_replcmds复制存储过程334

57.33 sp_replcounters复制存储过程335

57.34 sp_repldone复制存储过程336

57.35 sp_replflush复制存储过程337

57.36 sp_replica复制存储过程338

57.37 sp_replstatus复制存储过程338

57.38 sp_replsync复制存储过程339

57.39 sp_repltrans复制存储过程340

56.40 sp_subscribe复制存储过程341

57.41 sp_unsubscribe复制存储过程342

第58章 存储过程——SQL Executive存储过程344

58.1 sp_addalert SQL Executive存储过程344

58.2 sp_addnotification SQL Executive存储过程346

58.3 sp_addoperator SQL Executive存储过程347

58.4 sp_addtask SQL Executive存储过程349

58.5 sp_dropalert SQL Executive存储过程352

58.6 sp_dropnotification SQL Executive存储过程353

58.7 sp_dropoperator SQL Executive存储过程354

58.8 sp_droptask SQL Executive存储过程355

58.9 sp_helpalert SQL Executive存储过程356

58.10 sp_helphistory SQL Executive存储过程357

58.11 sp_helpnotification SQL Executive存储过程358

58.12 sp_helpoperator SQL Executive存储过程359

58.13 sp_helptask SQL Executive存储过程360

58.14 sp_purgehistory SQL Executive存储过程361

58.15 sp_updatealert SQL Executive存储过程362

58.16 sp_updatenotification SQL Executive存储过程365

58.17 sp_updateoperator SQL Executive存储过程366

58.18 sp_updatetask SQL Executive存储过程368

第59章 系统存储过程371

59.1 sp_addalias系统存储过程371

59.2 sp_addextendedproc系统存储过程373

59.3 sp_addgroup系统存储过程374

59.4 sp_addlogin系统存储过程375

59.5 sp_addmessage系统存储过程376

59.6 sp_addremotelogin系统存储过程378

59.7 sp_addsegment系统存储过程379

58.8 sp_addserver系统存储过程380

59.9 sp_addtype系统存储过程381

59.10 sp_addumpdevice系统存储过程383

59.11 sp_adduser系统存储过程385

59.12 sp_altermessage系统存储过程387

59.13 sp_bindefault系统存储过程388

59.14 sp_unbindefault系统存储过程389

59.15 sp_certify_removable系统存储过程391

59.16 sp_changedbowner系统存储过程392

59.17 sp_changegroup系统存储过程393

58.18 sp_configure系统存储过程394

59.19 sp_create_removable系统存储过程404

59.20 sp_dbinstall系统存储过程406

59.21 sp_dbremove系统存储过程408

59.22 sp_dbremove系统存储过程411

59.23 sp_defaultdb412

59.24 sp_defaultlanguage系统存储过程413

59.25 sp_depends系统存储过程414

59.26 sp_devoption系统存储过程415

59.27 sp_diskdefault系统存储过程416

59.28 sp_dropalias系统存储过程417

59.29 sp_dropdevice系统存储过程418

59.30 sp_dropextendedproc系统存储过程419

59.31 sp_dropgroup系统存储过程420

59.32 sp_droplanguage系统存储过程421

59.33 sp_droplogin系统存储过程422

59.34 sp_dropmessage系统存储过程423

59.35 sp_dropremotelogin系统存储过程423

59.36 sp_dropsegment系统存储过程425

59.37 sp_dropserver系统存储过程426

59.38 sp_droptype系统存储过程426

59.39 sp_dropuser系统存储过程427

59.40 sp_extendsegment系统存储过程428

59.41 sp_help系统存储过程429

59.42 sp_helpconstraint系统存储过程430

59.43 sp_helpdb系统存储过程431

59.44 sp_helpdevice系统存储过程432

59.45 sp_helpextendedproc系统存储过程433

59.46 sp_helpgroup系统存储过程434

59.47 sp_helpindex系统存储过程435

59.48 sp_helplanguage系统存储过程436

59.49 sp_helplog系统存储过程437

59.50 sp_logdevice系统存储过程437

59.51 sp_helprotect系统存储过程438

59.52 sp_helpsegment系统存储过程439

59.53 sp_helpserver系统存储过程440

59.54 sp_helpsort系统存储过程441

59.55 sp_helpsql系统存储过程442

59.56 sp_helpstartup系统存储过程443

59.57 sp_helptext系统存储过程443

59.58 sp_helpuser系统存储过程444

59.59 sp_lock系统存储过程445

59.60 sp_logdevice系统存储过程447

59.61 sp_makestartup系统存储过程448

59.62 sp_monitor系统存储过程449

59.63 sp_password系统存储过程451

59.64 sp_placeobject系统存储过程452

59.65 sp_processmail系统存储过程453

59.66 sp_recompile系统存储过程455

59.67 sp_remoteoption系统存储过程456

59.68 sp_rename系统存储过程457

59.69 sp_renamedb系统存储过程458

59.70 sp_serveroption系统存储过程459

59.71 sp_setlangalias系统存储过程460

59.72 sp_spaceused系统存储过程461

59.73 sp_unbindefault系统存储过程463

59.74 sp_unbindrule系统存储过程464

59.75 sp_unmakestartup系统存储过程465

59.76 sp_who系统存储过程466

第60章 子查询468

60.1 语法468

60.2 范例469

60.3 另见470

第61章 系统表471

61.1 系统表——数据库目录471

61.2 sysalternates(所有数据库)472

61.3 sysarticles(所有数据库)472

61.4 syscolumns(所有数据库)473

61.5 syscomments(所有数据库)475

61.6 sysconstraints(所有数据库)475

61.7 sysdepends(所有数据库)476

61.8 sysindexes(所有数据库)476

61.9 syslogs(所有数据库)478

61.10 sysobjects(所有数据库)478

61.11 sysprocedures(所有数据库)480

61.12 sysprotects(所有数据库)480

61.13 syspublications(所有数据库)481

61.14 sysreferences(所有数据库)482

61.15 syssegments(所有数据库)484

61.16 syssubscriptions(所有数据库)484

61.17 systypes(所有数据库)485

61.18 sysusers(所有数据库)486

61.19 系统表—系统目录487

61.20 syscharset(只在master数据库中)488

61.21 sysconfigures(只在master数据库中)488

61.22 syscurconfigs(仅在master数据库中)489

61.23 sysdatabases(仅在master数据库中)489

61.24 sysdevices(仅在master数据库中)490

61.25 syslanguages(仅在master数据库中)492

61.26 syslocks(仅在master数据库中)492

61.27 syslogins(仅在master数据库中)493

61.28 sysmessages(仅在master数据库中)494

61.29 sysprocesses(仅在master数据库中)495

61.30 sysremotelogins(仅在master数据库中)495

61.31 sysservers(仅在master数据库中)496

61.32 sysusages(仅在master数据库中)497

61.33 系统表—复制表498

61.34 MSjob_commands(仅在分发数据库中)498

61.35 MSjob_subscriptions(仅在分发数据库中)499

61.36 MSjobs(仅在分发数据库中)499

61.37 MSlast_job_info(仅在目标数据库中)500

61.38 MSsubscriber_info(仅在分发服务器中)501

61.39 MSsubscriber_jobs(仅在分发数据库中)501

61.40 MSsubscriber_status(仅在分发数据库中)502

61.41 系统表——SQL Executive表502

61.42 sysalerts503

61.43 syshistory504

61.44 sysnotifications505

61.45 sysoperators505

61.46 systasks506

第62章 文本和图像操作508

62.1 READTEXT语句508

62.2 UPDATETEXT语句509

62.3 WRITETEXT语句510

62.4 范例511

62.5 另见512

第63章 跟踪标志513

63.1 另见514

第64章 事务515

64.1 事务规则515

64.2 BEGIN TRANSACTION语句516

64.3 COMMIT TRANSACTION语句517

64.4 ROLLBACK TRANSACTION语句517

64.5 SAVE TRANSACTION语句518

64.6 范例519

64.7 另见520

第65章 TRUNCATE TABLE语句521

65.1 语法521

65.2 说明521

65.3 范例521

65.4 许可权521

65.5 另见522

第66章 UNION运算符523

66.1 语法523

66.2 说明523

66.3 范例524

66.4 另见525

第67章 UPDATE语句526

67.1 语法526

67.2 说明527

67.3 许可权529

67.4 范例529

67.5 另见531

第68章 UPDATE STATISTICS语句532

68.1 语法532

68.2 说明532

68.3 许可权532

68.4 范例532

68.5 另见534

第69章 USE语句535

69.1 语法535

69.2 说明535

69.3 许可权535

69.4 另见535

第70章 实用程序和可执行程序536

70.1 命令行实用程序和可执行程序536

70.2 图形实用程序536

70.3 bcp命令行实用程序537

70.4 console命令行实用程序539

70.5 isql命令行实用程序540

70.6 makepipe命令行实用程序544

70.7 readpipe命令行实用程序545

70.8 sqlservr命令行可执行程序545

第71章 变量548

71.1 局部变量548

71.2 全局变量549

71.3 另见551

第72章 通配符552

72.1 语法552

72.2 说明552

72.3 范例553

72.4 另见554

附录A 系统表图555

附录B pubs范例数据库557

B.1 authors表557

B.2 discounts表558

B.3 employee表559

B.4 jobs表561

B.5 pub_info表562

B.6 publishers表563

B.7 royched表563

B.8 sales表565

B.9 stores表566

B.10 titleauthor表567

B.11 titles表568

1997《Microsoft SQL Server 6.5 Transact-SQL 参考手册》由于是年代较久的资料都绝版了,几乎不可能购买到实物。如果大家为了学习确实需要,可向博主求助其电子版PDF文件(由(美国微软公司)Microsoft著;希望图书创作室译 1997 北京:宇航出版社 出版的版本) 。对合法合规的求助,我会当即受理并将下载地址发送给你。