没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Reference: Statements and Options
Sybase
®
IQ
15.1
DOCUMENT ID: DC00801-01-1510-01
LAST REVISED: July 2009
Copyright © 2009 by Sybase, Inc. All rights reserved.
This publication pertains to Sybase software and to any subsequent release until otherwise indicated in new editions or technical notes.
Information in this document is subject to change without notice. The software described herein is furnished under a license agreement,
and it may be used or copied only in accordance with the terms of that agreement.
To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845.
Customers in other countries with a U.S. license agreement may contact Customer Fulfillment via the above fax number. All other
international customers should contact their Sybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled
software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic,
mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc.
Sybase trademarks can be viewed at
the Sybase trademarks page at http://www.sybase.com/detail?id=1011207. Sybase and the marks listed
are trademarks of Sybase, Inc. ® indicates registration in the United States of America.
Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.
All other company and product names mentioned may be trademarks of the respective companies with which they are associated.
Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013
for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.
Sybase, Inc., One Sybase Drive, Dublin, CA 94568.
Contents
Reference: Statements and Options iii
About This Book ........................................................................................................................... xi
CHAPTER 1 SQL Statements .............................................................................. 1
Using the SQL statement reference................................................. 1
Common elements in SQL syntax............................................. 1
Syntax conventions ................................................................... 3
Statement applicability indicators.............................................. 4
ALLOCATE DESCRIPTOR statement [ESQL]................................. 4
ALTER DATABASE statement......................................................... 6
ALTER DBSPACE statement........................................................... 9
ALTER DOMAIN statement............................................................ 13
ALTER EVENT statement.............................................................. 14
ALTER FUNCTION statement ....................................................... 16
ALTER INDEX statement............................................................... 17
ALTER LOGIN POLICY statement................................................. 19
ALTER PROCEDURE statement................................................... 20
ALTER SERVER statement ........................................................... 20
ALTER SERVICE statement .......................................................... 23
ALTER TABLE statement .............................................................. 25
ALTER USER statement................................................................ 37
ALTER VIEW statement................................................................. 38
BACKUP statement........................................................................ 41
BEGIN … END statement .............................................................. 47
BEGIN PARALLEL IQ … END PARALLEL IQ statement .............. 50
BEGIN TRANSACTION statement................................................. 51
CALL statement ............................................................................. 55
CASE statement............................................................................. 57
CHECKPOINT statement............................................................... 58
CLEAR statement [DBISQL] .......................................................... 59
CLOSE statement [ESQL] [SP]...................................................... 59
COMMENT statement.................................................................... 61
COMMIT statement........................................................................ 62
CONFIGURE statement [DBISQL]................................................. 64
CONNECT statement [ESQL] [DBISQL]........................................ 65
Contents
iv
Sybase IQ
CREATE DATABASE statement.................................................... 68
CREATE DBSPACE statement...................................................... 81
CREATE DOMAIN statement ........................................................ 84
CREATE EVENT statement........................................................... 86
CREATE EXISTING TABLE statement.......................................... 93
CREATE EXTERNLOGIN statement ............................................. 96
CREATE FUNCTION statement .................................................... 97
CREATE INDEX statement.......................................................... 105
CREATE JOIN INDEX statement................................................. 114
CREATE LOGIN POLICY statement ........................................... 117
CREATE MESSAGE statement [T-SQL] ..................................... 119
CREATE PROCEDURE statement.............................................. 120
CREATE PROCEDURE statement [T-SQL] ................................ 127
CREATE SCHEMA statement ..................................................... 129
CREATE SERVER statement...................................................... 130
CREATE SERVICE statement..................................................... 132
CREATE TABLE statement ......................................................... 135
CREATE USER statement........................................................... 151
CREATE VARIABLE statement ................................................... 153
CREATE VIEW statement............................................................ 155
DEALLOCATE DESCRIPTOR statement [ESQL] ....................... 156
Declaration section [ESQL].......................................................... 157
DECLARE statement ................................................................... 158
DECLARE CURSOR statement [ESQL] [SP] .............................. 159
DECLARE CURSOR statement [T-SQL] ..................................... 166
DECLARE LOCAL TEMPORARY TABLE statement .................. 167
DELETE statement ...................................................................... 169
DELETE (positioned) statement [ESQL] [SP] .............................. 171
DESCRIBE statement [ESQL] ..................................................... 173
DISCONNECT statement [DBISQL] ............................................ 176
DROP statement.......................................................................... 177
DROP CONNECTION statement................................................. 180
DROP DATABASE statement...................................................... 181
DROP EXTERNLOGIN statement ............................................... 182
DROP LOGIN POLICY statement................................................ 183
DROP SERVER statement .......................................................... 183
DROP SERVICE statement ......................................................... 184
DROP STATEMENT statement [ESQL]....................................... 184
DROP USER statement ............................................................... 185
DROP VARIABLE statement ....................................................... 186
EXECUTE statement [ESQL]....................................................... 186
EXECUTE statement [T-SQL]...................................................... 188
EXECUTE IMMEDIATE statement [ESQL] [SP].......................... 190
EXIT statement [DBISQL] ............................................................ 192
Contents
Reference: Statements and Options v
FETCH statement [ESQL] [SP].................................................... 193
FOR statement............................................................................. 197
FORWARD TO statement............................................................ 199
FROM clause ............................................................................... 200
GET DESCRIPTOR statement [ESQL]........................................ 205
GOTO statement [T-SQL] ............................................................ 205
GRANT statement........................................................................ 206
IF statement ................................................................................. 212
IF statement [T-SQL].................................................................... 213
INCLUDE statement [ESQL] ........................................................ 215
INSERT statement ....................................................................... 216
INSTALL JAVA statement............................................................ 224
IQ UTILITIES statement............................................................... 227
LEAVE statement......................................................................... 229
LOAD TABLE statement .............................................................. 230
LOCK TABLE statement .............................................................. 252
LOOP statement .......................................................................... 255
MESSAGE statement................................................................... 257
OPEN statement [ESQL] [SP]...................................................... 260
OUTPUT statement [DBISQL] ..................................................... 263
PARAMETERS statement [DBISQL] ........................................... 267
PREPARE statement [ESQL]....................................................... 268
PRINT statement [T-SQL] ............................................................ 270
PUT statement [ESQL]................................................................. 272
RAISERROR statement [T-SQL] ................................................. 274
READ statement [DBISQL] .......................................................... 275
RELEASE SAVEPOINT statement .............................................. 276
REMOVE statement..................................................................... 277
RESIGNAL statement .................................................................. 278
RESTORE statement................................................................... 279
RESUME statement..................................................................... 284
RETURN statement ..................................................................... 286
REVOKE statement ..................................................................... 287
ROLLBACK statement ................................................................. 289
ROLLBACK TO SAVEPOINT statement...................................... 290
SAVEPOINT statement................................................................ 291
SELECT statement ...................................................................... 291
SET statement [ESQL]................................................................. 301
SET statement [T-SQL]................................................................ 303
SET CONNECTION statement [DBISQL] [ESQL] ....................... 306
SET DESCRIPTOR statement [ESQL] ........................................ 307
SET OPTION statement............................................................... 307
SET OPTION statement [DBISQL] .............................................. 310
SET SQLCA statement [ESQL].................................................... 311
剩余507页未读,继续阅读
资源评论
- davidie2015-11-30学习的好助手,参考手册比较全
啤酒大灰狼
- 粉丝: 0
- 资源: 32
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功