Sign In
Upload
Manuals
Brands
Hp Manuals
Software
Neoview SQL
Hp Neoview SQL Manuals
Manuals and User Guides for Hp Neoview SQL. We have
2
Hp Neoview SQL manuals available for free PDF download: Reference Manual
Hp Neoview SQL Reference Manual (462 pages)
Brand:
Hp
| Category:
Software
| Size: 3.32 MB
Table of Contents
Table of Contents
3
About this Document
23
Supported Release Version Updates (Rvus)
23
Intended Audience
23
New and Changed Information in this Edition
23
Document Organization
24
Notation Conventions
24
General Syntax Notation
24
Related Documentation
26
Neoview Customer Library
26
Publishing History
27
HP Encourages Your Comments
27
1 Introduction
29
SQL Language
29
Security
29
User Ids and Role
29
Authorization ID
29
Data Consistency and Access Options
30
Read Uncommitted
30
Read Committed
30
SERIALIZABLE or REPEATABLE READ
31
Skip Conflict
31
Database Integrity and Locking
31
Lock Duration
31
Lock Granularity
31
Lock Mode
31
Lock Holder
32
Transaction Management
32
Statement Atomicity
32
User-Defined and System-Defined Transactions
33
System-Defined Transactions
33
User-Defined Transactions
33
Rules for DML Statements
33
Effect of AUTOCOMMIT Option
33
Concurrency
33
Concurrent Ddl/Utility Operation and File Access Modes
33
Transaction Access Modes
35
Operations Effect on Table Timestamps
35
Read Only
35
Read Write
36
Transaction Isolation Levels
36
Read Committed
36
Read Uncommitted
36
SERIALIZABLE or REPEATABLE READ
36
Transaction Rollback Mode
37
ANSI Compliance and Neoview SQL Extensions
37
ANSI-Compliant Statements
37
Statements that Are Neoview SQL Extensions
38
ANSI-Compliant Functions
38
Neoview SQL Error Messages
39
2 SQL Statements
41
Categories
41
Data Definition Language (DDL) Statements
41
Data Manipulation Language (DML) Statements
42
Transaction Control Statements
42
Resource Control and Optimization Statements
42
Control Statements
43
Object Naming Statements
43
Trigger Statements
43
Stored Procedure Statements
43
ALTER MATERIALIZED VIEW Statement
44
Syntax Description of ALTER MATERIALIZED VIEW
44
Considerations for ALTER MATERIALIZED VIEW
44
ALTER MVGROUP Statement
45
Considerations for ALTER MVGROUP
45
Example of ALTER MVGROUP
45
ALTER SYNONYM Statement
46
Syntax Description of ALTER SYNONYM
46
Considerations
46
Versioning Considerations
46
Example of ALTER SYNONYM
46
ALTER TABLE Statement
47
Syntax Description of ALTER TABLE
47
Considerations for ALTER TABLE
49
Authorization and Availability Requirements
49
Effect of Adding a Column on View Definitions
49
Example of ALTER TABLE
49
ALTER TRIGGER Statement
50
Syntax Description of ALTER TRIGGER
50
Considerations for ALTER TRIGGER
50
Authorization and Availability Requirements
50
ALTER VIEW Statement
51
Syntax Description of ALTER VIEW
51
Example of ALTER VIEW
51
BEGIN WORK Statement
52
Examples of BEGIN WORK
52
CALL Statement
53
Syntax Description of CALL
53
Considerations for CALL
53
Required Privileges
53
Usage Restrictions
53
Data Conversion of Parameter Arguments
54
Input Parameter Arguments
54
Null Input and Output
54
Output Parameter Arguments
54
Transaction Semantics
54
Examples of CALL
54
COMMIT WORK Statement
56
Considerations for COMMIT WORK
56
Begin and End a Transaction
56
Effect of Constraints
56
Example of COMMIT WORK
56
CREATE INDEX Statement
58
Syntax Description of CREATE INDEX
58
Considerations for CREATE INDEX
59
Authorization and Availability Requirements
59
Limits on Indexes
59
Example of CREATE INDEX
59
CREATE MATERIALIZED VIEW Statement
60
Syntax Description of CREATE MATERIALIZED VIEW
60
Considerations for CREATE MATERIALIZED VIEW
62
Types of Materialized Views
62
Authorization
62
Materialized Views Clustering
63
Materialized Views Using Other Materialized Views
63
Single Delta Materialized Views
63
DML Operations on Materialized Views
63
Indexes and Materialized Views
63
Joins
64
Restrictions for CREATE MATERIALIZED VIEW
64
DML Operations on Materialized Views
64
MAV (Materialized Aggregate View) on a Single Table
64
MJV (Materialized Join View)
64
Example of CREATE MATERIALIZED VIEW
64
CREATE MVGROUP Statement
66
Example of CREATE MVGROUP
66
CREATE SCHEMA Statement
67
Syntax Description of CREATE SCHEMA
67
Considerations for CREATE SCHEMA
67
Reserved Schema Names
67
Example of CREATE SCHEMA
67
CREATE SYNONYM Statement
68
Syntax Description of CREATE SYNONYM
68
Considerations
68
Versioning Considerations
68
Example of CREATE SYNONYM
68
CREATE TABLE Statement
69
Syntax Description of CREATE TABLE
71
Considerations for CREATE TABLE
73
Considerations for CREATE VOLATILE TABLE
74
Considerations for CREATE TABLE LIKE
74
Reserved Table Names
74
Authorization and Availability Requirements
74
Limits for Tables
74
Maximum Row Sizes Available
74
Calculating Row Size
75
Creating Partitions Automatically
75
Record Format
75
Generating Unique Values for a Column
75
Neoview SQL Extensions to CREATE TABLE
77
Disk Pool
77
Considerations for DISK POOL
77
Restrictions for DISK POOL
78
Examples of CREATE TABLE
78
Examples of CREATE TABLE as
79
CREATE TRIGGER Statement
81
Syntax Description of CREATE TRIGGER
81
Considerations for CREATE TRIGGER
82
Authorization and Availability Requirements
82
Trigger Types
82
Restrictions on Triggers
84
Recompilation and Triggers
84
Triggers and Primary Keys
84
Examples of CREATE TRIGGER
85
Before and after Triggers
85
CREATE VIEW Statement
87
Syntax Description of CREATE VIEW
87
Considerations for CREATE VIEW
88
Authorization and Availability Requirements
88
Effect of Adding a Column on View Definitions
88
Reserved View Names
88
Updatable and Non-Updatable Views
88
Examples of CREATE VIEW
89
DELETE Statement
90
Syntax Description of DELETE
90
Considerations for DELETE
92
Authorization Requirements
92
Isolation Levels of Transactions and Access Options of Statements
92
SET on ROLLBACK Considerations
92
SET on ROLLBACK Restrictions
92
Transaction Initiation and Termination
92
Examples of DELETE
92
DROP INDEX Statement
93
Syntax Description of DROP INDEX
93
Considerations for DROP INDEX
93
Authorization and Availability Requirements
93
Indexes that Support Constraints
93
Example of DROP INDEX
93
DROP MATERIALIZED VIEW Statement
94
Syntax Description of DROP MATERIALIZED VIEW
94
Example of DROP MATERIALIZED VIEW
94
DROP MVGROUP Statement
95
Considerations for DROP MVGROUP
95
Example of DROP MVGROUP
95
DROP SCHEMA Statement
96
Syntax Description of DROP SCHEMA
96
Considerations for DROP SCHEMA
96
Authorization and Availability Requirements
96
Example of DROP SCHEMA
96
DROP SYNONYM Statement
97
Syntax Description of DROP SYNONYM
97
Considerations
97
Versioning Considerations
97
Example of DROP SYNONYM
97
DROP TABLE Statement
98
Syntax Description of DROP TABLE
98
Considerations for DROP TABLE
98
Authorization and Availability Requirements
98
Example of DROP TABLE
98
DROP TRIGGER Statement
99
Syntax Description of DROP TRIGGER
99
Considerations for DROP TRIGGER
99
Authorization and Availability Requirements
99
Examples of DROP TRIGGER
99
DROP VIEW Statement
100
Syntax Description of DROP VIEW
100
Considerations for DROP VIEW
100
Authorization and Availability Requirements
100
Example of DROP VIEW
100
EXECUTE Statement
101
Syntax Description of EXECUTE
101
Considerations for EXECUTE
102
Examples of EXECUTE
102
Scope of EXECUTE
102
EXPLAIN Statement
104
EXPLAIN Statement Options
104
Syntax
104
Case Considerations
105
Considerations
105
Formatted [OPTIONS 'F'] Considerations
105
Number Considerations
105
Node Listing Information
106
Normal User [OPTIONS 'N'] Considerations
106
Plan Summary Information
106
Expert User [OPTIONS 'E'] Considerations
108
Machine-Readable [OPTIONS 'M'] Considerations
110
Example of EXPLAIN Statement Using ODBC
112
Example of EXPLAIN Statement Using JDBC
113
GRANT Statement
115
Syntax Description of GRANT
115
Authorization and Availability Requirements
116
Considerations for GRANT
116
Examples of GRANT
116
Privileges on Views
116
GRANT EXECUTE Statement
117
Authorization and Availability Requirements
117
Considerations for GRANT EXECUTE
117
Syntax Description of GRANT EXECUTE
117
Examples of GRANT EXECUTE
118
GRANT SCHEMA Statement
119
Syntax Description of GRANT SCHEMA
119
Authorization and Availability Requirements
120
Considerations for GRANT SCHEMA
120
Examples of GRANT SCHEMA
120
Schema Privileges and Synonyms
120
INSERT Statement
121
Syntax Description of INSERT
121
Authorization Requirements
123
Considerations for INSERT
123
Self-Referencing INSERT and BEGIN WORK or AUTOCOMMIT off
123
Transaction Initiation and Termination
123
Isolation Levels of Transactions and Access Options of Statements
124
Requirements for Inserted Rows
124
Use of a VALUES Clause for the Source Query Expression
124
Using Compatible Data Types
124
Examples of INSERT
125
LOCK TABLE Statement
127
Authorization Requirements
127
Considerations for LOCK TABLE
127
Effect of AUTOCOMMIT Option
127
Modifying Default Locking
127
Syntax Description of LOCK TABLE
127
Indexes
128
Examples of LOCK TABLE
128
MERGE into Statement
129
Syntax Description of MERGE into
129
Considerations for MERGE into
129
Upsert Using Single Row
129
Example
130
MERGE from One Table into Another
130
Restrictions
130
Upsert Using Rowsets
130
Example
131
Reflexive Updates
131
PREPARE Statement
132
Syntax Description of PREPARE
132
Considerations for PREPARE
132
Availability of a Prepared Statement
132
Examples of PREPARE
132
REVOKE Statement
134
Syntax Description of REVOKE
134
Considerations for REVOKE
135
Authorization and Availability Requirements
135
Examples of REVOKE
135
REVOKE EXECUTE Statement
136
Syntax Description of REVOKE EXECUTE
136
Considerations for REVOKE EXECUTE
137
Authorization and Availability Requirements
137
Examples of REVOKE EXECUTE
137
REVOKE SCHEMA Statement
138
Syntax Description of REVOKE SCHEMA
138
Considerations for REVOKE SCHEMA
139
Authorization and Availability Requirements
139
Examples of REVOKE SCHEMA
139
ROLLBACK WORK Statement
140
Considerations for ROLLBACK WORK
140
Begin and End a Transaction
140
Examples of ROLLBACK WORK
140
SELECT Statement
141
Syntax Description of SELECT
144
Considerations for SELECT
151
Authorization Requirements
151
Locking Modes
151
Use of Views with SELECT
151
AS and ORDER by Conflicts
152
DISTINCT Aggregate Functions
152
Join Limits
152
Object Names in SELECT
152
Restrictions on Embedded Inserts
152
Stream Access Restrictions
152
Examples of Multiple Distinct Aggregates
153
Limitations of DISTINCT Aggregates
153
Considerations for Select List
153
Considerations for SEQUENCE by
153
Considerations for GROUP by
153
Considerations for SORT by
154
Considerations for ORDER by
154
Considerations for DISTINCT
154
Characteristics of the UNION Columns
154
Considerations for UNION
154
Access Modes and the UNION Operator
155
GROUP by Clause, HAVING Clause, and the UNION Operator
155
ORDER by Clause and the UNION Operator
155
UNION ALL and Associativity
155
Examples of SELECT
156
Examples for Embedded INSERT
161
SET SCHEMA Statement
163
Consideration for SET SCHEMA
163
Examples of SET SCHEMA
163
Syntax Description of SET SCHEMA
163
SET TABLE TIMEOUT Statement
164
Syntax Description of SET TABLE TIMEOUT
164
Considerations for SET TABLE TIMEOUT
165
Examples of SET TABLE TIMEOUT
165
SET TRANSACTION Statement
166
Syntax Description of SET TRANSACTION
166
Considerations for SET TRANSACTION
167
Implicit Transactions
167
Degree of Concurrency
168
Effect on Utilities
168
Example of SET TRANSACTION
168
Explicit Transactions
168
UPDATE Statement
169
Syntax Description of UPDATE
169
Authorization Requirements
171
Conflicting Updates in Concurrent Applications
171
Considerations for UPDATE
171
Isolation Levels of Transactions and Access Options of Statements
171
Transaction Initiation and Termination
171
Reporting of Updates
172
Requirements for Data in Row
172
SET Clause Restrictions and Error Cases
172
Updating Character Values
172
Examples of UPDATE
173
SET on ROLLBACK Considerations
173
SET on ROLLBACK Restrictions
173
UPDATE STATISTICS Statement
175
Syntax Description of UPDATE STATISTICS
175
Authorization and Locking
177
Considerations for UPDATE STATISTICS
177
Physical Statistics
177
Transactions
177
Using Statistics
177
Column Lists and Access Plans
178
Examples of UPDATE STATISTICS
178
Generating and Clearing Statistics for Columns
178
3 SQL Utilities
181
Privileges Required to Execute Utilities
181
MAINTAIN Command
182
Syntax Description of MAINTAIN
182
Maintain Mvgroup
184
Examples of MAINTAIN
184
POPULATE INDEX Utility
186
Syntax Description of POPULATE INDEX
186
Considerations for POPULATE INDEX
186
Examples of POPULATE INDEX
186
PURGEDATA Utility
187
Syntax Description of PURGEDATA
187
Considerations for PURGEDATA
187
Examples of PURGEDATA
187
4 SQL Language Elements
189
Character Sets
190
Columns
191
Column References
191
Derived Column Names
191
Column Default Settings
191
Examples of Derived Column Names
191
Constraints
193
Creating, Adding, and Dropping Constraints on SQL Tables
193
Constraint Names
193
Correlation Names
194
Explicit Correlation Names
194
Implicit Correlation Names
194
Examples of Correlation Names
194
Database Objects
195
Ownership
195
Database Object Names
196
Logical Names for SQL Objects
196
SQL Object Namespaces
196
Data Types
197
Comparable and Compatible Data Types
199
Character Data Types
199
Datetime Data Types
199
Interval Data Types
200
Numeric Data Types
200
Character String Data Types
200
Considerations for Character String Data Types
201
Datetime Data Types
202
Considerations for Datetime Data Types
202
Interval Data Types
204
Considerations for Interval Data Types
204
Numeric Data Types
205
Expressions
208
Character Value Expressions
208
Examples of Character Value Expressions
208
Datetime Value Expressions
210
Considerations for Datetime Value Expressions
211
Examples of Datetime Value Expressions
211
Interval Value Expressions
213
Considerations for Interval Value Expressions
214
Examples of Interval Value Expressions
215
Numeric Value Expressions
217
Considerations for Numeric Value Expressions
217
Examples of Numeric Value Expressions
219
Identifiers
220
Regular Identifiers
220
Delimited Identifiers
220
Examples of Identifiers
220
Indexes
221
SQL Indexes
221
Keys
222
Clustering Keys
222
Index Keys
222
SQL Index Keys
222
Primary Keys
222
Literals
223
Character String Literals
223
Considerations for Character String Literals
224
Examples of Character String Literals
224
Datetime Literals
225
Examples of Datetime Literals
225
Interval Literals
226
Considerations for Interval Literals
227
Examples of Interval Literals
228
Numeric Literals
228
Examples of Numeric Literals
229
Null
230
Using Null Versus Default Values
230
Defining Columns that Allow or Prohibit Null
230
Null in DISTINCT, GROUP BY, and ORDER by Clauses
230
Null and Expression Evaluation Comparison
231
SQL Tables
232
Automatically Creating Partitions
232
Predicates
233
BETWEEN Predicate
233
Considerations for between
234
Examples of between
234
Comparison Predicates
234
Considerations for Comparison Predicates
235
Examples of Comparison Predicates
236
EXISTS Predicate
238
Examples of EXISTS
238
IN Predicate
239
Considerations for in
239
Examples of in
240
NULL Predicate
241
Considerations for NULL
241
Examples of NULL
242
Quantified Comparison Predicates
242
Considerations for ALL, ANY, some
243
Examples of ALL, ANY, some
243
Privileges
245
Considerations
245
General Rules for Object-Privilege and Schema-Privilege
245
Privilege Descriptions for Object-Privilege
245
General Rules for Column-List
246
Schemas
247
Search Condition
248
Considerations for Search Condition
248
Column References
248
Order of Evaluation
248
Subqueries
248
Examples of Search Condition
249
Subquery
250
SELECT Form of a Subquery
250
Using Subqueries to Provide Comparison Values
250
Nested Subqueries When Providing Comparison Values
250
Correlated Subqueries When Providing Comparison Values
251
Tables
252
Base Tables and Views
252
Example of a Base Table
252
Triggers
253
Views
254
SQL Views
254
Example of a View
254
Mvgroups
254
Advertisement
Hp Neoview SQL Reference Manual (552 pages)
Brand:
Hp
| Category:
Software
| Size: 3.75 MB
Table of Contents
Table of Contents
3
About this Document
19
Intended Audience
19
New and Changed Information in this Edition
19
Document Organization
19
Notation Conventions
20
General Syntax Notation
20
Related Documentation
22
Neoview Customer Library
22
Publishing History
24
HP Encourages Your Comments
24
1 Introduction
25
SQL Language
25
Security
25
Data Consistency and Access Options
25
Read Uncommitted
26
Read Committed
26
SERIALIZABLE or REPEATABLE READ
26
Skip Conflict
26
Database Integrity and Locking
26
Lock Duration
27
Lock Granularity
27
Lock Mode
27
Lock Holder
27
Transaction Management
27
Statement Atomicity
28
User-Defined and System-Defined Transactions
28
Rules for DML Statements
29
Effect of AUTOCOMMIT Option
29
Concurrency
29
Concurrent Ddl/Utility Operation and File Access Modes
29
Concurrent Ddl/Utility and DML Operations
30
Concurrent DML and DDL Operations
30
Transaction Access Modes
31
Operations Effect on Table Timestamps
31
Transaction Isolation Levels
32
Transaction Rollback Mode
33
ANSI Compliance and Neoview SQL Extensions
33
ANSI-Compliant Statements
33
Statements that Are Neoview SQL Extensions
34
ANSI-Compliant Functions
34
Neoview SQL Error Messages
35
2 SQL Statements
37
Categories
37
Data Definition Language (DDL) Statements
37
Data Manipulation Language (DML) Statements
38
Transaction Control Statements
38
Resource Control and Optimization Statements
38
Control Statements
39
Object Naming Statements
39
Stored Procedure Statements
39
ALTER MATERIALIZED VIEW Statement
40
Syntax Description of ALTER MATERIALIZED VIEW
40
Considerations for ALTER MATERIALIZED VIEW
40
Example of ALTER MATERIALIZED VIEW
41
ALTER MVGROUP Statement
42
Syntax Description of ALTER MVGROUP
42
Considerations for ALTER MVGROUP
42
Examples of ALTER MVGROUP
42
ALTER SYNONYM Statement
43
Syntax Description of ALTER SYNONYM
43
Considerations for ALTER SYNONYM
43
Example of ALTER SYNONYM
43
ALTER TABLE Statement
44
Syntax Description of ALTER TABLE
45
Considerations for ALTER TABLE
48
Recalibrating an IDENTITY Column
49
Example of ALTER TABLE ALTER COLUMN
51
Example of ALTER TABLE
52
ALTER TRIGGER Statement
53
Syntax Description of ALTER TRIGGER
53
Considerations for ALTER TRIGGER
53
Examples of ALTER TRIGGER
53
ALTER VIEW Statement
54
Syntax Description of ALTER VIEW
54
Considerations for ALTER VIEW
54
Example of ALTER VIEW
54
BEGIN WORK Statement
55
Considerations for BEGIN WORK
55
Example of BEGIN WORK
55
CALL Statement
56
Syntax Description of CALL
56
Considerations for CALL
56
Examples of CALL
57
COMMIT WORK Statement
59
Considerations for COMMIT WORK
59
Example of COMMIT WORK
59
CREATE INDEX Statement
60
Syntax Description of CREATE INDEX
60
Considerations for CREATE INDEX
61
Example of CREATE INDEX
62
CREATE MATERIALIZED VIEW Statement
63
Syntax Description of CREATE MATERIALIZED VIEW
63
Considerations for CREATE MATERIALIZED VIEW
65
Examples of CREATE MATERIALIZED VIEW
67
CREATE MVGROUP Statement
69
Considerations for MVGROUP
69
Example of CREATE MVGROUP
69
CREATE SCHEMA Statement
70
Syntax Description of CREATE SCHEMA
70
Considerations for CREATE SCHEMA
70
Example of CREATE SCHEMA
70
CREATE SYNONYM Statement
71
Syntax Description of CREATE SYNONYM
71
Considerations for CREATE SYNONYM
71
Example of CREATE SYNONYM
71
CREATE TABLE Statement
72
Syntax Description of CREATE TABLE
73
Considerations for CREATE TABLE
78
Considerations for CREATE SET TABLE
78
Considerations for CREATE VOLATILE TABLE
79
Precedence of Data Types During Suitable Key Searches
80
Considerations for CREATE TABLE LIKE
81
Considerations for CREATE TABLE as
84
Reserved Table Names
86
Authorization and Availability Requirements
86
Limits for Tables
87
Calculating Row Size
87
Creating Partitions Automatically
87
Maximum Row Sizes Available
87
Generating Values for an IDENTITY Column
88
Neoview SQL Extensions to CREATE TABLE
92
Considerations for DISK POOL
92
Examples of CREATE TABLE
93
Examples of CREATE SET TABLE
94
Example of CREATE SET VOLATILE TABLE
94
Examples of CREATE TABLE as
94
CREATE TRIGGER Statement
96
Syntax Description of CREATE TRIGGER
96
Considerations for CREATE TRIGGER
97
Examples of CREATE TRIGGER
100
CREATE VIEW Statement
102
Syntax Description of CREATE VIEW
102
Considerations for CREATE VIEW
103
Examples of CREATE VIEW
105
DELETE Statement
108
Syntax Description of DELETE
108
Considerations for DELETE
110
Examples of DELETE
111
DROP INDEX Statement
113
Syntax Description of DROP INDEX
113
Considerations for DROP INDEX
113
Example of DROP INDEX
113
DROP MATERIALIZED VIEW Statement
114
Syntax Description of DROP MATERIALIZED VIEW
114
Authorization and Availability Requirements
114
Example of DROP MATERIALIZED VIEW
114
DROP MVGROUP Statement
115
Syntax Description of DROP MVGROUP
115
Considerations for DROP MVGROUP
115
Example of DROP MVGROUP
115
DROP SCHEMA Statement
116
Syntax Description of DROP SCHEMA
116
Considerations for DROP SCHEMA
116
Example of DROP SCHEMA
116
DROP SYNONYM Statement
117
Syntax Description of DROP SYNONYM
117
Considerations for DROP SYNONYM
117
Example of DROP SYNONYM
117
DROP TABLE Statement
118
Syntax Description of DROP TABLE
118
Considerations for DROP TABLE
118
Examples of DROP TABLE
118
DROP TRIGGER Statement
119
Syntax Description of DROP TRIGGER
119
Considerations for DROP TRIGGER
119
Example of DROP TRIGGER
119
DROP VIEW Statement
120
Syntax Description of DROP VIEW
120
Considerations for DROP VIEW
120
Example of DROP VIEW
120
EXECUTE Statement
121
Syntax Description of EXECUTE
121
Considerations for EXECUTE
122
Examples of EXECUTE
122
EXPLAIN Statement
124
Syntax Description of EXPLAIN
124
EXPLAIN Statement Options
124
Considerations for EXPLAIN
125
Plan Summary Information
126
Node Listing Information
127
Cost Factors of DETAIL_COST Column
131
Example of Explain Statement Using Odbc
132
Example of Explain Statement Using Jdbc
132
GET SERVICE Statement
134
Syntax Description of GET SERVICE
134
Considerations for GET SERVICE
134
Examples of GET SERVICE
134
GET SERVICE Output
134
GRANT Statement
136
Syntax Description of GRANT
136
Considerations for GRANT
137
Examples of GRANT
137
GRANT EXECUTE Statement
138
Syntax Description of GRANT EXECUTE
138
Considerations for GRANT EXECUTE
138
Examples of GRANT EXECUTE
139
GRANT SCHEMA Statement
140
Syntax Description of GRANT SCHEMA
140
Considerations for GRANT SCHEMA
142
Examples of GRANT SCHEMA
143
INSERT Statement
144
Syntax Description of INSERT
144
Considerations for INSERT
145
Examples of INSERT
146
LOCK TABLE Statement
149
Syntax Description of LOCK TABLE
149
Considerations for LOCK TABLE
149
Examples of LOCK TABLE
150
MERGE into Statement
151
Syntax Description of MERGE into
151
Considerations for MERGE into
151
Example of MERGE into
153
PREPARE Statement
154
Syntax Description of PREPARE
154
Considerations for PREPARE
154
Examples of PREPARE
154
REVOKE Statement
156
Syntax Description of REVOKE
156
Considerations for REVOKE
157
Examples of REVOKE
157
REVOKE EXECUTE Statement
158
Syntax Description of REVOKE EXECUTE
158
Considerations for REVOKE EXECUTE
159
Examples of REVOKE EXECUTE
159
REVOKE SCHEMA Statement
160
Syntax Description of REVOKE SCHEMA
160
Considerations for REVOKE SCHEMA
162
Examples of REVOKE SCHEMA
162
ROLLBACK WORK Statement
163
Syntax Description of ROLLBACK WORK
163
Considerations for ROLLBACK WORK
163
Example of ROLLBACK WORK
163
SELECT Statement
164
Syntax Description of SELECT
166
Considerations for SELECT
173
Considerations for Select List
175
Considerations for SEQUENCE by
175
Considerations for GROUP by
175
Considerations for ORDER by
176
Considerations for UNION
176
Examples of SELECT
178
SET SCHEMA Statement
185
Syntax Description of SET SCHEMA
185
Consideration for SET SCHEMA
185
Examples of SET SCHEMA
185
SET TABLE TIMEOUT Statement
186
Syntax Description of SET TABLE TIMEOUT
186
Considerations for SET TABLE TIMEOUT
187
Examples of SET TABLE TIMEOUT
187
SET TRANSACTION Statement
188
Syntax Description of SET TRANSACTION
188
Considerations for SET TRANSACTION
190
Examples of SET TRANSACTION
192
SHOWDDL Statement
193
Syntax Description of SHOWDDL
193
Considerations for SHOWDDL
193
Examples of SHOWDDL
194
TABLE Statement
197
Considerations for TABLE
197
Examples of TABLE
197
UPDATE Statement
198
Syntax Description of UPDATE
198
Considerations for UPDATE
200
Examples of UPDATE
202
UPDATE STATISTICS Statement
204
Syntax Description of UPDATE STATISTICS
205
Considerations for UPDATE STATISTICS
207
Examples of UPDATE STATISTICS
209
VALUES Statement
210
Considerations for VALUES
210
Examples of VALUES
210
3 SQL Utilities
211
Privileges Required to Execute Utilities
211
MAINTAIN Command
212
Syntax Description of MAINTAIN
213
Maintain Mvgroup
217
Examples of MAINTAIN
217
POPULATE INDEX Utility
220
Syntax Description of POPULATE INDEX
220
Considerations for POPULATE INDEX
220
Examples of POPULATE INDEX
221
PURGEDATA Utility
222
Syntax Description of PURGEDATA
222
Considerations for PURGEDATA
222
Example of PURGEDATA
223
REPLICATE Command
224
Syntax Description of REPLICATE
225
Considerations for REPLICATE
226
Examples of REPLICATE
230
4 SQL Language Elements
233
Character Sets
234
Columns
235
Column References
235
Derived Column Names
235
Column Default Settings
236
Constraints
237
Creating, Adding, and Dropping Constraints on SQL Tables
237
Correlation Names
238
Explicit Correlation Names
238
Implicit Correlation Names
238
Examples of Correlation Names
238
Cursors
239
ANSI Holdable Cursors in JDBC Client Applications
239
Database Objects
241
Ownership
241
Database Object Names
242
Logical Names for SQL Objects
242
SQL Object Namespaces
242
Data Types
243
Comparable and Compatible Data Types
245
Character String Data Types
248
Datetime Data Types
250
Interval Data Types
251
Numeric Data Types
253
Expressions
255
Character Value Expressions
255
Examples of Character Value Expressions
256
Datetime Value Expressions
257
Interval Value Expressions
261
Numeric Value Expressions
265
Examples of Numeric Value Expressions
268
Identifiers
269
Regular Identifiers
269
Delimited Identifiers
269
Examples of Identifiers
269
Indexes
271
SQL Indexes
271
Keys
272
Clustering Keys
272
Syskey
272
Hash Partition Keys
273
Index Keys
273
Primary Keys
273
Literals
274
Character String Literals
274
Datetime Literals
275
Interval Literals
277
Considerations for Interval Literals
278
Numeric Literals
279
Materialized Views
281
Types of Materialized Views
281
Mvgroups
282
Null
283
Using Null Versus Default Values
283
Defining Columns that Allow or Prohibit Null
283
Null and Expression Evaluation Comparison
284
Partitions
285
Hash Partition Keys
285
Automatically Creating Partitions
285
Predicates
286
BETWEEN Predicate
286
Comparison Predicates
287
EXISTS Predicate
291
IN Predicate
292
LIKE Predicate
294
NULL Predicate
296
Quantified Comparison Predicates
297
Privileges
301
Considerations
301
Schemas
304
Search Condition
305
Considerations for Search Condition
305
Examples of Search Condition
306
Subquery
307
SELECT Form of a Subquery
307
Using Subqueries to Provide Comparison Values
307
Nested Subqueries When Providing Comparison Values
307
Correlated Subqueries When Providing Comparison Values
308
Synonyms
309
Tables
310
Base Tables and Views
310
Example of a Base Table
310
Triggers
311
Views
312
SQL Views
312
Example of a View
312
5 SQL Clauses
313
DEFAULT Clause
314
Examples of DEFAULT
315
FORMAT Clause
316
Considerations for Date Formats
317
Considerations for Other Formats
317
Examples of FORMAT
317
SAMPLE Clause
318
Considerations for SAMPLE
319
Examples of SAMPLE
320
Cluster Sampling
320
SEQUENCE by Clause
326
Considerations for SEQUENCE by
326
Examples of SEQUENCE by
327
TRANSPOSE Clause
329
Considerations for TRANSPOSE
330
Examples of TRANSPOSE
331
Advertisement
Related Products
Hp Neoview Messages
HP Netserver AA Solution
HP NetServer DiagTools
HP NetServer AutoPilot
HP NetServer FCArray Assistant
Hp NonStop RDF H-series RVUs
Hp NonStop SQL/MX
HP ProLiant StorageWorks NAS 4000s
HP NonStop RDF
Hp nld
Hp Categories
Desktop
Laptop
Server
Monitor
Switch
More Hp Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL