subselect
>>__select-clause__from-clause___________________________________________> ǀ_where-clause_ǀ >________________________________________________________________________> ǀ_group_by_clause_ǀ ǀ_having-clause_ǀ >________________________________________________________________________> ǀ_order-by-clause_ǀ ǀ_offset-clause_ǀ ǀ_fetch-clause_ǀ
(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)
select-clause
_ALL______ >>__SELECT__ǀ__________ǀ_________________________________________________> ǀ_DISTINCT_ǀ >____*___________________________________________________________________>< ǀ <_,_____________________________________ ǀ ǀ_____expression__________________________ǀ_ǀ ǀ ǀ _AS_ ǀ ǀ ǀ ǀ_ǀ____ǀ__column-name_ǀ ǀ ǀ__unpacked-row_______________________ǀ ǀ____table-name_________.*____________ǀ ǀ_view-name________ǀ ǀ_correlation-name_ǀ unpacked row: <_,________________ >>__UNPACK-function-invocation_.*_AS_(_field_name_data_type_ǀ____________>< from-clause: <_,_______________ >>__FROM____table-reference__ǀ___________________________________________>< table reference: >>_______single-table-reference__________________________________________>< ǀ_single-view-expression_________________ǀ ǀ_nested-table-expression________________ǀ ǀ_table-function-reference_______________ǀ ǀ_data-chage-table-reference_____________ǀ ǀ_joined-table___________________________ǀ ǀ_table-locator-reference________________ǀ ǀ_collection-derived-table_______________ǀ ǀ_xmltable-expression____________________ǀ single-table-reference: <__________________________ >>__table-name____________________________ǀ______________________________>< ǀ_period-specification____ǀ ǀ_correlation-clause_ǀ single-view-reference: <__________________________ >>__view-name_____________________________ǀ______________________________>< ǀ_period_-specification___ǀ ǀ_correlation-clause_ǀ period-specification: >>__FOR___SYSTEM_TIME________________AS OF value__________________________>< ǀ_BUSINESS_TIME_________ǀ ǀ_FROM_value1_to_value2_____ǀ ǀ_BETWEEN_value2_AND_value2_ǀ correlation-clause: _AS_ >>__ǀ____ǀ__correlation-name______________________________________________>< ǀ <_,__________ ǀ ǀ_(__column-nameǀ_)_ǀ nested-table-expression: >>__________(fullselect)__correlation-clause______________________________>< ǀ_TABLE_ǀ table-function-reference: >>_TABLE_(function-name(___________________________________)______________> ǀ <_ ,________________________________ ǀ ǀ_____expression_____________________ǀ_ǀ ǀ_TABLE__transition_table_name_ǀ >__table-UDF-cardinality-clause__)________________________________________> >__correlation-clause_____________________________________________________> ǀ_typed-correlation-clause_ǀ table-UDF-cardinality-clause: >>__CARDINALITY__integer-constant_________________________________________>< ǀ_CARDINALITY MULTIPLIER_numeric-constant_ǀ data-change-table-reference: >>__FINAL TABLE_(INSERT statement)________________________________________> ǀ__FINAL____TABLE (searched UPDATE statement)_ǀ ǀ_correlation-clause_ǀ ǀ ǀ_OLD__ǀ ǀ ǀ_OLD TABLE__searched DELETE statement________ǀ ǀ_FINAL TABLE__(MERGE statement)______________ǀ collection-derived-table: >>__UNNEST_(_ordinary-array-expression_______)____________________________>< ǀ_associative-array-expression_ǀ ǀ_WITH ORDINALITY_ǀ >___correlation-clause____________________________________________________> typed-correlation-clause _AS_ >>___ǀ____ǀ___correlation-name____________________________________________>< ǀ <_,_____________________ ǀ ǀ_(__column-name_data-typeǀ_)_ǀ xmltable-expression: >>_xmltable-function__correlation clause__________________________________> joined-table: _INNER____ >>__table-reference_ǀ__________ǀ__JOIN__table-reference_ON_join-condition_>< ǀ ǀ _OUTER_ ǀ ǀ ǀ ǀ___LEFT____ǀ_______ǀ_ǀ ǀ ǀ ǀ_RIGHT_ǀ ǀ ǀ ǀ_FULL__ǀ ǀ ǀ__table-reference_CROSS JOIN_table-reference________________________ǀ ǀ_(__joined-table__)_________________________________________________ǀ For INNER, LEFT OUTER, and RIGHT OUTER joins: >>__search-condition______________________________________________________>< For FULL OUTER joins: <_AND________________________________________ǀ >>____full-join-expression__=__full-join-expression_ǀ_____________________>< full-join-expression: >>______column-name_______________________________________________________>< ǀ ǀ_cast-function____ǀ ǀ ǀ <_____________________ ǀ ǀ___COALESCE___(___column-name____________, column-name_____ǀ_)_ǀ ǀ_cast-function____ǀ ǀ_, cast-function__ǀ where-clause: >>__WHERE__search-condition_______________________________________________>< group-by-clause: <_,___________________ >>__GROUP BY____grouping-expression_ǀ_____________________________________> ǀ_grouping-set________ǀ ǀ_super-groups________ǀ grouping-set: </_><_ ,__________________ >__GROUPING SETS_(_grouping expression__ǀ_____)___________________________>< ǀ ǀ_super-groups_ǀ ǀ ǀ <_,__________________ ǀ ǀ_(_grouping-expression_____ǀ___ǀ ǀ_super-groups_ǀ super-groups: >____ROLLUP____(grouping-expression-list)_________________________________>< ǀ_CUBE______(grouping-expression-list)_________ǀ ǀ_grand-total__________________________________ǀ grouping-expression-list: <_,_________________ >____grouping-expression__ǀ_______________________________________________>< ǀ <_,_________________ ǀ ǀ_(_grouping-expression_ǀ_)_ǀ having-clause: >>__HAVING__search-condition_____________________________________________>< order-by-clause: <_,_________________ _ASC__ ǀ >__ORDER BY___sort-key__ǀ______ǀ_ǀ________________________________________>< ǀ ǀ ǀ_DESC_ǀ ǀ ǀ ǀ ǀ_ORDER OF table-designator_ǀ ǀ ǀ_INPUT SEQUENCE_________________ǀ sort-key: >__ _column-name_ ________________________________________________________>< ǀ_integer______________ǀ ǀ_sort-key-expression__ǀ offset clause: >>__OFFSET__offset-row-count____ROW_______________________________________>< ǀ_ROWS_ǀ fetch-clause: _1_______ >>__FETCH FIRST_____ǀ_________ǀ__ _ROW__ __ONLY___________________________>< ǀ_NEXT_ǀ ǀ_integer_ǀ ǀ_ROWS_ǀ
fullselect
<____________________________________________>____subselect____________________________________________________ǀ_______> ǀ_(fullselect)__ǀ ǀ _DISTINCT_ ǀ ǀ_values-clause_ǀ ǀ_UNION_______ǀ__________ǀ__subselect______ǀ ǀ_EXCEPT____ǀǀ_ALL______ǀ ǀ_(fullselect)_ ǀ ǀ_INTERSECT_ǀ >_________________________________________________________________________>< ǀ_order-by-clause_ǀ ǀ_offset-clause_ǀ ǀ_fetch-clause_ǀ values-clause: >__VALUES____sequence-reference___________________________________________>< ǀ <_,_____________________ ǀ ǀ_(_sequence-reference______ǀ___ǀ select-statement: >__ ______________________________________________________________________> ǀ_WITH__common-table-expression_ǀ >__fullselect_____________________________________________________ǀ_______> ǀ_read-only-clause____ǀ ǀ_update-clause_______ǀ ǀ_optimize-clause_____ǀ ǀ_isolation-clause____ǀ ǀ_queryno-clause______ǀ ǀ_SKIP LOCKED DATA____ǀ common-table-expression: >__table-identifier_____ ________________________ __AS_(fullselect)_______> ǀ <_ ,____________ ǀ ǀ_(___ _____________ǀ__)_ǀ ǀ_column-name_ǀ read-only-clause: >>__FOR_READ_ONLY_________________________________________________________>< update-clause: <_,___________ >>__FOR UPDATE OF____column-name_ǀ________________________________________>< optimize-for-clause: >>__OPTIMIZE FOR__integer____ROWS_________________________________________>< ǀ_ROW__ǀ isolation-clause: >>__WITH_____CS___________________________________________________________>< ǀ_UR________________________ǀ ǀ_RR________________________ǀ ǀ ǀ_lock-clause__ǀ ǀ ǀ_RS________________________ǀ ǀ_lock-clause_ǀ lock-clause: >_USE AND KEEP_____EXCLUSIVE___LOCKS______________________________________>< ǀ__UPDATE____ǀ ǀ__SHARE_____ǀ queryno-clause: >>__QUERYNO__integer______________________________________________________>< SKIP LOCKED DATA: >>__SKIP LOCKED DATA______________________________________________________><
STATEMENTS
ALLOCATE CURSOR
>>__ALLOCATE__cursor-name_CURSOR FOR RESULT SET__rs-locator-variable_____>
ALTER DATABASE
<_____________________________>>__ALTER DATABASE__database-name________BUFFERPOOL__bpname__________ǀ___> ǀ_INDEXBP_bpname__________ǀ ǀ_STOGROUP__stogroup-name_ǀ ǀ_CCSID__ccsid-value______ǀ </_____________________________>
ALTER FUNCTION (external)
>>__ALTER____FUNCTION__function-name_____________________________________> ǀ ǀ <_ ,__________________ ǀ ǀ ǀ ǀ__(______________________)__)_ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ_SPECIFIC FUNCTION__specific-name__________________________ǀ >__option-list___________________________________________________________>< parameter-type: >>____data-type__________________________________________________________>< ǀ_AS LOCATOR____ǀ data-type: >>____built-in-data-type_________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type >__SMALLINT_________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)_____________________ ǀ ǀ__DECIMAL____ǀ________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_,integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ_______________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)___________ ǀ ǀ___FLOAT___ǀ_______________ǀ______________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL____________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE___ǀ___________ǀ__ǀ ǀ ǀ __(1)__________ ǀ ǀ ǀ_____CHARACTER____ǀ_______________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)___ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SCBS___DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length_)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ_________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS___DATA__ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ___________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer_________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE___________________________________________________________________________________ǀ ǀ ǀ_TIME_______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ____________________ǀ______________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE_____ǀ ǀ ǀ_ROWID____________________________________________________________________________________ǀ options-list >>__EXTERNAL_NAME_ _external-program name_ _LANGUAGE_ _ASSEMBLE__ _____> ǀ_identifier____________ǀ ǀ_C_________ǀ ǀ_COBOL_____ǀ ǀ_JAVA______ǀ ǀ_PLI_______ǀ >__PARAMETER STYLE__ _SQL_______ __ _NOT DETERMINISTIC_ _______________> ǀ_JAVA______ǀ ǀ_DETERMINISTIC_____ǀ >__ _RETURNS NULL ON NULL INPUT_ ______ _MODIFIES SQL_________ ________> ǀ_CALLED ON NULL INPUT_______ǀ ǀ_READS SQL DATA_______ǀ ǀ_CONTAINS SQL DATA____ǀ ǀ_NO SQL_______________ǀ >__ _NO EXTERNAL ACTION_ __ _NO SCRATCHPAD__________ __________________> ǀ_EXTERNAL ACTION____ǀ ǀ_SCRATCHPAD____length___ǀ >__PACKAGE PATH package path___________________________________________> ǀ_NO PACKAGEPATH___________ǀ >__ _NO FINAL CALL_ __ _ALLOW PARALLEL____ __ _NO DBINFO_ _____________> ǀ_FINAL CALL____ǀ ǀ_DISALLOW PARALLEL_ǀ ǀ_DBINFO____ǀ >__CARDINALITY__integer______ _NO COLLID_____________ _________________> ǀ_COLLID__collection-id_ǀ >__WLM ENVIRONMENT__ _name_____________________________________________> ǀ_(__name__,*__)_ǀ >__ASUTIME__ _NO LIMIT_______ __STAY RESIDENT__ _NO__ _________________> ǀ_LIMIT__integer_ǀ ǀ_YES_ǀ >__PROGRAM TYPE__ _SUB__ __SECURITY__ _DB2_____ _______________________> ǀ_MAIN_ǀ ǀ_USER____ǀ ǀ_DEFINER_ǀ >__STOP AFTER SYSTEM DEFAULT FAILURES__________________________________> ǀ_STOP AFTER-integer-FAILURES_______ǀ ǀ_CONTINUE AFTER FAILURE____________ǀ >__RUN OPTIONS__run-time-options_______________________________________> >_ _INHERIT SPECIAL REGISTERS_ _____STATIC DISPATCH _SECURED__________>< ǀ_DEFAULT SPECIAL REGISTERS_ǀ ǀ_NOT SECURED_ǀ external-java-routine-name: >__ ___________ __method-name___ __________________ ___________________> ǀ_jar-name:_ǀ ǀ_method-signature_ǀ jar-name: >__ ______________ __jar-id____________________________________________> ǀ_schema-name._ǀ method-name: <_______________________>___ ____________________ ǀ__class-id__ _.___ __method-id____________> ǀ_package-id_ _.___ __ǀ ǀ_!___ǀ ǀ_/___ǀ method-signature: >__ ___________________________ ______________________________________> ǀ_(_ ___________________ _)_ǀ ǀ <_ ,___________ ǀ ǀ java-datatypeǀ__ǀ
ALTER FUNCTION(compiled SQL scalar)
>__ALTER____function-designator________________________________________> __ALTER__ __ACTIVE VERSION____________ <_____________>__ǀ_________ǀ_ǀ____________________________ǀ_____options-list_ǀ_______> ǀ ǀ_ALL VERSIONS_______________ǀ ǀ ǀ ǀ_VERSION routine-version-id_ǀ ǀ ǀ _ACTIVE VERSION_____________ ǀ ǀ_REPLACE_ǀ____________________________ǀ__routine-specification___ǀ ǀ ǀ_VERSION_routine_version_id_ǀ ǀ ǀ_ADD VERSION_routing-version-id__routine-specification___________ǀ ǀ_ACTIVATE VERSION_routin-version-id______________________________ǀ ǀ _ACTIVE VERSION______________ ǀ ǀ_REGENERATE___ǀ_____________________________ǀ____________________ǀ ǀ ǀ_VERSION_routing-version-id__ǀ____________________ǀ ǀ_DROP VERSION_routine-version-id_________________________________ǀ function-designator: >____FUNCTION__function-name____________________________________________> ǀ ǀ <_ ,__________________ ǀ ǀ ǀ ǀ_(_______________________ǀ__)_ǀ ǀ ǀ ǀ_data-type______ǀ ǀ ǀ_SPECIFIC FUNCTION__specific-name_________________________ǀ routine-specification: <______________ >_(_____________________________)_RETURNS_data_type2_________________ǀ__> ǀ </_><_ ,______________________ ǀ ǀ_options-list__ǀ ǀ_parameter-name_data-type_ǀ_ǀ >__SQL-routine-body_____________________________________________________>< data-type, data-type2: >>____built-in-data-type________________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type: >__SMALLINT_______________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ _____(5,0)_____________________ ǀ ǀ__DECIMAL__ǀ_________________________________ǀ__________________________________________ǀ ǀǀ_DEC______ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ_____________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ_____________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ__________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_( length__)____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ_______________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ _FOR__SCBS__DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)_____________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ_________________ǀ__________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ__________________ǀ ǀ ǀ ǀ_(integer)________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_______________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer__________)___ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ____DATE_________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_____________________________________ǀ ǀ ǀ_(integer_(_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID__________________________________________________________________________________ǀ ǀ_XML____________________________________________________________________________________ǀ SQL-routine-body >>_SQL-control-statement___________________________________________________>< option-list: >_____NOT DETERMINISTIC________EXTERNAL ACTION_____________________________> ǀ_DETERMINISTIC_____ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA___________CALLED ON NULL INPUT________________________> ǀ_CONTAINS SQL_______ǀ ǀ_RETURNS NULL ON NULL INPUT_ǀ ǀ_MODIFIES SQL DATA__ǀ >_____STATIC DISPATCH____________ALLOW PARALLEL____________________________> ǀ_DISALLOW PARALLEL_ǀ >__DISALLOW DEBUG MODE_______QUALIFIER schema-name_________________________> ǀ_ALLOW DEBUG MODE____ǀ ǀ_DISABLE DEBUG MODE__ǀ >__PACKAGE OWNER__authorization-name_____ASUTIME_NO LIMIT__________________> ǀ_ASUTIME_LIMIT__integer_ǀ >__INHERIT SPECIAL REGISTERS_____WLM ENVIRONMENT FOR DEBUG MODE name_______> ǀ_DEFAULT SPECIAL REGISTERS_ǀ >__CURRENT DATA NO_____CONCURRENT ACCESS RESOLTION USE CURRENTLY COMMITTED_> ǀ_CURRENT DATA YES_ǀǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME______> >____DYNAMICRULES RUN______________________________________________________> ǀ_DYNAMICRULES BIND_______ǀ ǀ_APPLICATION ENCODING SCHEME ASCII___ǀ ǀ_DYNAMICRULES DEFINEBIND_ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_DYNAMICRULES DEFINERUN__ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ ǀ_DYNAMICRULES INVOKEBIND_ǀ ǀ_DYNAMICRULES INVOKERUN__ǀ >__WITHOUT EXPLAIN____ISOLATION LEVEL CS___OPHINT__’ ‘_____________________> ǀ_WITH EXPLAIN___ǀǀ_ISOLATION LEVEL RS_ǀ ǀ_OPHINT_string-constant_ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ </_><_ ,______ >_SQL PATH__schema-nameǀ______REOPT NONE_____VALIDATE RUN__________________> ǀ_SCHEMA PATH__ǀ ǀ_REOPTALWAYS_ǀ ǀ_VALIDATE BIND_ǀ ǀ_SESSION USER_ǀ ǀ_REOPT ONCE__ǀ ǀ_USER_ǀ >__________________________________________________________________________> ǀ_QUERY ACCELERATION NONE_________________ǀ ǀ_GET_ACCEL_ARCHIVE NO___ǀ ǀ_QUERY ACCELERATION ENABLE_______________ǀ ǀ_GET_ACCEL_ARCHIVE_YES__ǀ ǀ_QUERY ACCELERATION ENABLE WITH FAILBACK_ǀ ǀ_QUERY ACCELERATION ELIGIBLE_____________ǀ ǀ_QUERY ACCELERATION ALL__________________ǀ >__________________________________________________________________________> ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_DATE FORMAT ISO___ ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_DATE FORMAT LOCAL_ ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________FOR UPDATE CLAUSE REQUIRED______________________> ǀ_DECIMAL(15)___ǀ ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_DECIMAL(31)___ǀ ǀ_DECIMAL(15,s)_ǀ ǀ_DECIMAL(31,s)_ǀ >____________________________SECURED_______________________________________> ǀ_TIME FORMAT ISO___ǀ ǀ_NOT SECURED_ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ _BUSINESS TIMESENSITIVE YES_ _SYSTEM TIMESENSITIVE YES_ >____ǀ____________________________ǀ___ǀ__________________________ǀ__________> ǀ_BUSINESS TIMESENSITIVE NO__ǀ ǀ_SYSTEM TIMESENSITIVE NO__ǀ _ARCHIVE SENSITIVE YES___ >____ǀ_________________________ǀ____________________________________________>< ǀ_ ARCHIVE SENSITIVE NO___ǀ ǀ_APPLCOMPAT_compatibility-level_ǀ >___________________________________________________________________________> ǀ_CONCENTRATE STATEMENTS OFF__________ǀ ǀ_CONCENTRATE STATEMENT WITH LITERALS_ǀ </_></_____________>
ALTER FUNCTION (inline SQL scalar)
>_ALTER_FUNCTION__funtion-name_________________________________option-list__> ǀ ǀ <_ ,___________________ ǀ ǀ ǀ ǀ_(_______________________ǀ_)_ǀ ǀ ǀ ǀ_parameter-type______ǀ ǀ ǀ_SPECIFIC FUNCTION__specific-name___________________ǀ Parameter-type: >_data-type_________________________________________________________________> data-type: >>____built-in-data-type____________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT_________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ _____(5,0)_______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ__________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer_________________)____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ_______________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ_______________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length_)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR___SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__ǀ__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ_________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ___________________ǀ__________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)____ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ __(1M)______________ ǀ_UNICDOE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ____________________ǀ ǀ ǀ ǀ_(integer)__________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer_________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE___________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ____ǀ___________________ǀ______________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID____________________________________________________________________________________ǀ ǀ_XML______________________________________________________________________________________ǀ option-list: >_____NOT DETERMINISTIC________EXTERNAL ACTION_____________________________> ǀ_DETERMINISTIC______ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA___________CALLED ON NULL INPUT__NOT SECURED___________> ǀ_CONTAINS SQL_____ǀ ǀ_SECURED___ǀ >_____STATIC DISPATCH______________________________________________________> </_>
ALTER FUNCTION (SQL table)
>__ALTER____function-designator__RESTRICT___options-list___________________> function-designator: >____FUNCTION__function-name_______________________________________________> ǀ ǀ <_ ,__________________ ǀ ǀ ǀ ǀ_(________________________ǀ__)_ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ_SPECIFIC FUNCTION__specific-name__________________________ǀ parameter-type: >>____data-type____________________________________________________________>< data-type: >>____built-in-data-type___________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT_________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT_ ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ__________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer_________________)____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ_______________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ_______________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS___DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)________ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ_____________ǀ________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS___DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ___________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_________________ ǀ_UNICDOE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ_______________________ǀ ǀ ǀ ǀ_(integer)_____________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ǀ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(_integer__________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE___________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_______________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID____________________________________________________________________________________ǀ ǀ_XML______________________________________________________________________________________ǀ option-list: >_____NOT DETERMINISTIC_______EXTERNAL ACTION____________________________> ǀ_DETERMINISTIC_____ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA__________CALLED ON NULL INPUT_______________________> ǀ_CONTAINS SQL______ǀ >_____INHERIT SPECIAL REGISTERS___STATIC DISPATCH________________________> >_____CARDINALITY integer___SECURED______________________________________> ǀ_NOT SECURED_ǀ </_>
ALTER INDEX
>>__ALTER INDEX__index-name______________________________________________> ǀ_REGENERATE_ǀ <______________________________________________________________>_____________________________________________________________________ǀ__> ǀ_BUFFERPOOL__bpname_____________________________ǀ ǀ_CLOSE____YES___________________________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_COPY____NO_____________________________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_PIECESIZE_____integer____K_____________________ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ_using-block____________________________________ǀ ǀ_free-block_____________________________________ǀ ǀ_gbpcache-block_________________________________ǀ ǀ___CLUSTER______________________________________ǀ ǀ ǀ_NOT CLUSTER_ǀ ǀ ǀ__COMPRESS NO___________________________________ǀ ǀ ǀ_COMPRESS YES_ǀ ǀ ǀ___NOT PADDED___________________________________ǀ ǀ ǀ_PADDED______ǀ ǀ ǀ _ASC____ ǀ ǀ_ADD COLUMN_(column name_ǀ________ǀ_)___________ǀ ǀ ǀ_DESC___ǀ ǀ ǀ ǀ_RANDOM_ǀ ǀ ǀ_INCLUDE COLUMN (column-name)__ǀ >__ _____________________________________________________________________> ǀ <_ ,__________________________________________________________ ǀ ǀ ǀ <_,______________________________________________ ǀǀ ǀ ǀ ǀ <_____________________ ǀ ǀǀ ǀ_____ǀ___ALTER__ǀ___partion-element______ǀ__ ________________ _ǀ_ǀ_ǀǀ ǀ_using-block____ǀ ǀ_free-block_____ǀ ǀ_gbpcache-block_ǀ ǀ_DSSIZE int G___ǀ using-block <_________________________________________ >>______USING_____VCAT__catalog-name__________ǀ__________________________>< ǀ ǀ_STOGROUP__stogroup-name_ǀ ǀ ǀ_PRIQTY___integer____________________ǀ ǀ_SECQTY___integer____________________ǀ ǀ_ERASE_____YES_______________________ǀ ǀ_NO__ǀ free-block <_______________________ >>______FREEPAGE__integer___ǀ____________________________________________>< ǀ_PCTFREE__integer__ǀ gbpcache-block >>__GBPCACHE____CHANGED__________________________________________________>< ǀ_ALL_____ǀ ǀ_NONE____ǀ partition-element >>__PARTITION__integer___________________________________________________> ǀ ǀ ǀ _AT_ </_><_ ,________ _INCLUSIVE_ ǀ ǀ_ENDING__ǀ____ǀ__(_constant___ǀ_)_ǀ___________ǀ_____ǀ ǀ_MAXVALUE_ǀ ǀ_MINVALUE_ǀ
ALTER MASK
>>__ALTER MASK__mask-name___ENABLE_______________________________________> ǀ_DISABLE____ǀ ǀ_REGENERATE_ǀ
ALTER PERMISSION
>>__ALTER PERMISSION__permission-name___ENABLE___________________________> ǀ_DISABLE____ǀ ǀ_REGENERATE_ǀ
ALTER PROCEDURE (external)
>>__ALTER PROCEDURE__procedure-name___option-list________________________> option-list >______DYNAMIC__RESULT____SETS____integer______________________________>< ǀ_EXTERNAL NAME____external-program-name_________ǀ ǀ ǀ_identifier_ǀ ǀ ǀ_LANGUAGE____ASSEMBLE___________________________ǀ ǀ ǀ_C________ǀ ǀ ǀ ǀ_COBOL____ǀ ǀ ǀ ǀ_JAVA_____ǀ ǀ ǀ ǀ_PLI______ǀ ǀ ǀ ǀ_REXX_____ǀ ǀ ǀ________________________________________________ǀ ǀ ǀ_PARAMETER STYLE____SQL_____________________ǀ ǀ ǀ ǀ_GENERAL____________ǀ ǀ ǀ ǀ_GENERAL WITH NULLS_ǀ ǀ ǀ ǀ_JAVA_______________ǀ ǀ ǀ___NOT DETERMINISTIC____________________________ǀ ǀ ǀ_DETERMINISTIC_____ǀ ǀ ǀ PACKAGE PATH__package path____________________ǀ ǀ ǀ_NO PACKAGE PATH______________ǀ ǀ ǀ___CONTAINS SQL_________________________________ǀ ǀ ǀ_READS SQL DATA____ǀ ǀ ǀ ǀ_MODIFIES SQL DATA_ǀ ǀ ǀ ǀ_NO SQL____________ǀ ǀ ǀ___NO DBINFO____________________________________ǀ ǀ ǀ_DBIINFO___ǀ ǀ ǀ___NO COLLID____________________________________ǀ ǀ ǀ_COLLID__collection-id_ǀ ǀ ǀ___WLM ENVIRONMENT____name______________________ǀ ǀ ǀ_(__name__,*__)_ǀ ǀ ǀ_ASUTIME____NO LIMIT____________________________ǀ ǀ ǀ_LIMIT__integer_ǀ ǀ ǀ_STAY RESIDENT____NO____________________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_PROGRAM TYPE____SUB____________________________ǀ ǀ ǀ_MAIN_ǀ ǀ ǀ_SECURITY____DB2________________________________ǀ ǀ ǀ_USER____ǀ ǀ ǀ ǀ_DEFINER_ǀ ǀ ǀ_RUN OPTIONS__run-time-options__________________ǀ ǀ_COMMIT ON RETURN____NO_________________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_ INHERIT SPECIAL REGISTERS__ __________________ǀ ǀ ǀ_DEFAULT SPECIAL REGISTERS_ǀ ǀ ǀ_CALLED ON NULL INPUT___________________________ǀ ǀ___STOP AFTER SYSTEM DEFAULT FAILURES___________ǀ ǀ ǀ_STOP AFTER integer FAILURES__________ǀ ǀ ǀ ǀ_CONTINUE AFTER FAILURE_______________ǀ ǀ ǀ__DISALLOW DEBUG MODE___________________________ǀ ǀ_ALLOW DEBUG MODE_____________ǀ ǀ_DISABLE DEBUG MODE___________ǀ external-java-routine-name ǀ__ ______________method-name___ __________________ _______________________ǀ ǀ_jar-name:_ ǀ ǀ_method-signature_ǀ jar-name ǀ__ _______________ __jar-id_______________________________________________ǀ ǀ_schema-name._ ǀ method-name <_________________________ ǀ___ _______________________ ǀ__class-id__ _._____ __method-id____________ǀ ǀ_package-id_ _._____ __ǀ ǀ_!_____ǀ ǀ_/_____ǀ method-signature ǀ__ ___________________________ ___________________________________________ǀ ǀ_(_ ___________________ _)_ǀ ǀ <_,___________ ǀ ǀ___java-datatypeǀ__ǀ
ALTER PROCEDURE (SQL-external)
>>__ALTER PROCEDURE__procedure-name__option-list___________________________> <_____________________________________________>______DYNAMIC__RESULT__SETS______integer________ǀ_______________________>< ǀ_EXTERNAL NAME____’string’_______________ǀ ǀ ǀ_identifier_ǀ ǀ ǀ___NOT DETERMINISTIC_____________________ǀ ǀ ǀ_DETERMINISTIC_____ǀ ǀ ǀ___CONTAINS SQL__________________________ǀ ǀ ǀ_READS SQL DATA____ǀ ǀ ǀ ǀ_MODIFIES SQL DATA_ǀ ǀ ǀ___NO COLLID_____________________________ǀ ǀ ǀ_COLLID__collection-id_ǀ ǀ ǀ___WLM ENVIRONMENT____name_______________ǀ ǀ ǀ_(__name__,*__)_ǀ ǀ ǀ_ASUTIME____NO LIMIT_____________________ǀ ǀ ǀ_LIMIT__integer_ǀ ǀ ǀ_STAY RESIDENT____NO_____________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_PROGRAMTYPE___SUB_______________________ǀ ǀ ǀ_MAIN_ǀ ǀ ǀ_SECURITY____DB2_________________________ǀ ǀ ǀ_USER____ǀ ǀ ǀ ǀ_DEFINER_ǀ ǀ ǀ_RUN OPTIONS__run-time-options___________ǀ ǀ_COMMIT ON RETURN____NO__________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_ INHERIT SPECIAL REGISTERS___ __________ǀ ǀ ǀ_DEFAULT SPECIAL REGISTERS__ǀ ǀ ǀ___STOP AFTER SYSTEM DEFAULT FAILURES____ǀ ǀ_STOP AFTER integer FAILURES__________ǀ ǀ_CONTINUE AFTER FAILURE_______________ǀ
ALTER PROCEDURE (SQL-native)
>_ALTER PROCEDURE__procedure-name__________________________________________> _ALTER_ _ACTIVE VERSION_______________ >__ǀ_______ǀ_ǀ______________________________ǀ_option-list__________________>< ǀ ǀ_VERSION__routine-version-id__ǀ ǀ ǀ _ACTIVE VERSION______________ ǀ ǀ_REPLACE_ǀ_____________________________ǀ_routine-specification ___ǀ ǀ ǀ_VERSION routine-version-id__ǀ ǀ ǀ_ADD VERSION__routine-version-id__ routine-specification _________ǀ ǀ_ACTIVATE VERSION__routine-version-id_____________________________ǀ ǀ _ACTIVE VERSION_____________ ǀ ǀ_REGENERATE__ǀ____________________________ǀ_______________________ǀ ǀ ǀ_VERSION—routine-version-id_ǀ ǀ ǀ_DROP VERSION__routine-version-id_________________________________ǀ routine-specification: >_________________________________________________________SQL-routine-body_> ǀ__________________________________ǀ ǀ_option-list_ǀ ǀ_(______________________________)_ǀ ǀ<__ ,_____________________ ǀ ǀ_parameter-declaration ǀ_ǀ parameter-declaration: __IN___ >_ǀ_______ǀ_parameter-name___data-type_____________________________________> ǀ_OUT___ǀ ǀ_INOUT_ǀ data-type: >>____built-in-data-type___________________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ _______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ__________________________________ǀ__________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer_________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)_______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ___________________ǀ___________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)______________ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ __(1M)______________ ǀ_UNICDOE_ǀ ǀ ǀ ǀ_DBCLOB_ǀ____________________ǀ ǀ ǀ ǀ_(integer)__________ǀ ǀ ǀ _(1M)_______ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)____________________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)_________________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ______________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer______________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ___________ǀ___ǀ___________________ǀ_________________________________________ǀ ǀ ǀ_(integer)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_XML_______________________________________________________________________________________ǀ option-list: >_____NOT DETERMINISTIC_______________________________________________________> ǀ_DETERMINISTIC______ǀ ǀ_DYNAMIC RESULT SETS integer_ǀ >_____READS SQL DATA__________________________________________________________> ǀ_CONTAINS SQL_______ǀ ǀ_CALLED ON NULL INPUT_ǀ ǀ_MODIFIES SQL DATA__ǀ >_____STATIC DISPATCH_____________ALLOW PARALLEL______________________________> ǀ_DISALLOW PARALLEL_ǀ >__DISALLOW DEBUG MODE______PARAMETER CCSID ASCII____QUALIFIER schema-name____> ǀ_ALLOW DEBUG MODE____ǀǀ_PARAMETER CCSID EBCDIC__ǀ ǀ_DISABLE DEBUG MODE__ǀǀ_PARAMETER CCSID UNICDOE_ǀ >__PACKAGE OWNER__auth-name_____ASUTIME_NO_LIMIT_______COMMIT ON RETURN YES___> ǀ_ASUTIME_LIMIT__int_ǀ ǀ_COMMIT ON RETURN NO_ǀ ǀ_AUTONOMOUS__________ǀ >__INHERIT SPECIAL REGISTERS______WLM ENVIRONMENT FOR DEBUG MODE name_________> ǀ_DEFAULT SPECIAL REGISTERS_ǀ >__CURRENT DATA NO_____CONCURRENT ACCESS RESOLUTION USE CURRENTLY COMMITTED___> ǀ_CURRENT DATA YES_ǀǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME_______ǀ >_________________________DEGREE 1____________________________________________> ǀ_DEFER PREPARE___ǀ _ǀDEGREE ANY 1_ǀ ǀ_NODEFER PREPARE_ǀ >____DYNAMICRULES RUN_________________________________________________________> ǀ_DYNAMICRULES BIND_______ǀ ǀ_APPLICATION ENCODING SCHEME ASCII___ǀ ǀ_DYNAMICRULES DEFINEBIND_ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_DYNAMICRULES DEFINERUN__ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ ǀ_DYNAMICRULES INVOKEBIND_ǀ ǀ_DYNAMICRULES INVOKERUN__ǀ >__WITHOUT EXPLAIN____ISOLATION LEVEL CS_________OPHINT__’ ‘__________________> ǀ_WITH EXPLAIN___ǀǀ_ISOLATION LEVEL RS_ǀ ǀ_OPHINT_string-constant_ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ <_ ,______ >_SQL PATH__schema-nameǀ______REOPT NONE______VALIDATE RUN____________________> ǀ_SCHEMA PATH__ǀ ǀ_REOPT ALWAYS_ǀ ǀ_VALIDATE BIND_ǀ ǀ_SESSION USER_ǀ ǀ_REOPT ONCE___ǀ ǀ_USER_ǀ >_____________________________________________________________________________> ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_DATE FORMAT ISO___ ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_EVEN_ǀ ǀ_DATE FORMAT LOCAL_ ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________FOR UPDATE CLAUSE REQUIRED_________________________> ǀ_DECIMAL(15)___ ǀ ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_DECIMAL(31)___ ǀ ǀ_DECIMAL(15,s)_ ǀ ǀ_DECIMAL(31,s)_ ǀ >_____________________________________________________________________________> ǀ_TIME FORMAT ISO___ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ _YES_ ǀ ǀ_SYSTIMESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_BUSTIMESENSITIVE(_ǀ_NO__ǀ_)__ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ ǀ ǀ_ARCHIVESENSITIVE(_ǀ_NO__ǀ_)__ǀ ǀ_APPLCOMPAT(__level__)_ǀ >__________________________________________________________________________>< ǀ_CONCENTRATE STATEMENTS OFF___________ǀ ǀ_CONCENTRATE STATEMENTS WITH LITERALS_ǀ
ALTER SEQUENCE
>>__ALTER SEQUENCE__sequence-name___________________________________________> <_______________________________________>___ _RESTART__ ________________________ _ ǀ______________________________>< ǀ ǀ_WITH__numeric-constant_ǀ ǀ ǀ_INCREMENT BY__numeric-constant______ǀ ǀ_ _NO MINVALUE________________ ______ǀ ǀ ǀ_MINVALUE__numeric-constant_ǀ ǀ ǀ_ _NO MAXVALUE________________ ______ǀ ǀ ǀ_MAXVALUE__numeric-constant_ǀ ǀ ǀ_ _NO CYCLE_ ________________________ǀ ǀ ǀ_CYCLE____ǀ ǀ ǀ_ _NO CACHE________________ _________ǀ ǀ ǀ_CACHE__integer-constant_ǀ ǀ ǀ_ _NO ORDER_ ________________________ǀ ǀ_ORDER_____ǀ
ALTER STOGROUP
>>__ALTER STOGROUP__stogroup-name___________________________________________> <_____________________________________________ <_,_______ ǀ >______ADD VOLUMES(____volume-idǀ______)_______ǀ________________________>< ǀ ǀ <_,___ ǀ ǀ ǀ ǀ___’*’_ǀ________ǀ ǀ ǀ <_,_______ ǀ ǀ_REMOVE VOLUMES(____volume-idǀ_______)_ǀ ǀ <_,___ ǀ ǀ___’*’_ǀ_________ǀ >___________________________________________________________________________> ǀ_DATACLAS_dc-name_ǀ ǀ_MGMTCLAS_mc-name_ǀ ǀ_STORCLAS_sc-name_ǀ </_____________________________________________>
ALTER TABLE
>>__ALTER TABLE__table-name_________________________________________________> <_________________________________________________ _COLUMN_ >_______ADD_ǀ________ǀ__column-definition___________________________________> ǀ _COLUMN_ ǀ ǀ_ALTER__ǀ________ǀ_column-alteration___________________ǀ ǀ_RENAME COLUMN source-column-name______________________ǀ ǀ ǀ_TO target-column-name___ǀ ǀ ǀ_DROP COLUMN_column-name_RESTRICT______________________ǀ ǀ_ADD PERIOD FOR period-definition______________________ǀ ǀ_ADD__unique constraint________________________________ǀ ǀ ǀ_referential-constraint_ǀ ǀ ǀ ǀ_check-constraint_______ǀ ǀ ǀ_DROP__ PRIMARY KEY____________________________________ǀ ǀ ǀ_FOREIGN KEY_constraint-name_ǀ ǀ ǀ ǀ_UNIQUE______ǀ ǀ ǀ ǀ_CHECK_______ǀ ǀ ǀ ǀ_CONSTRAINT__ǀ ǀ ǀ_ADD PARTITION BY_partitioning-clause__________________ǀ ǀ_ADD PARTITION_partitioning-clause_____________________ǀ ǀ_ALTER PARTITION_integer_partition clause______________ǀ ǀ_ROTATE_FIRST___TO LAST_rotate-part-clause______________ǀ ǀ ǀ_integer_ǀ ǀ ǀ_ADD ORGANIZE BY HASH organization-clause_______________ǀ ǀ_ALTER ORGANIZATION_SET HASH SPACE int__K_______________ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ_DROP ORGANIZATION______________________________________ǀ ǀ _SYSTEM_ ǀ ǀ_ADD_ǀ________ǀ_VERSIONING USE HISTORY TABLE hist-table_ǀ ǀ _SYSTEM_ ǀ ǀ_DROP_ǀ________ǀ_VERSIONING_____________________________ǀ ǀ __MATERIALIZED_ ǀ ǀ __ǀ_______________ǀ__QUERY_ ǀ ǀ_ADD_ǀ___________________________ǀ_mqt-def______________ǀ ǀ _ MATERIALIZED_ ǀ ǀ_DROP_ǀ_______________ǀ_QUERY___________________________ǀ ǀ _ MATERIALIZED_ ǀ ǀ_ALTER_ǀ_______________ǀ_QUERY_____mqt-alt______________ǀ ǀ ǀ_CHANGES_ǀ ǀ ǀ ǀ_ALL_____ǀ ǀ ǀ_DATA CAPTURE____NONE___________________________________ǀ ǀ ǀ_CHANGES_ǀ ǀ ǀ _CARDINALITY_ ǀ ǀ__NOT VOLATILE____ǀ_____________ǀ_______________________ǀ ǀ ǀ_VOLATILE____ǀ ǀ ǀ_ADD CLONE_clone-table-name_____________________________ǀ ǀ_DROP CLONE_____________________________________________ǀ ǀ_ADD RESTRICT ON DROP___________________________________ǀ ǀ_DROP RESTRICT ON DROP__________________________________ǀ ǀ__ACTIVATE_________ROW ACCESS CONTROL___________________ǀ ǀ ǀ_DEACTIVATE_ǀ ǀ ǀ__ACTIVATE_________COLUMN ACCESS CONTROL________________ǀ ǀ ǀ_DEACTIVATE_ǀ ǀ ǀ_APPEND___NO____________________________________________ǀ ǀ ǀ_YES_ǀ ǀ ǀ_VALIDPROC____program-name______________________________ǀ ǀ ǀ_NULL_________ǀ ǀ ǀ_AUDIT____NONE__________________________________________ǀ ǀ ǀ_CHANGES_ǀ ǀ ǀ ǀ__ALL____ǀ ǀ ǀ_ENABLE ARCHIVE _USE_ archive-table-name________________ǀ ǀ_DISABLE ARCHIVE_____________________________________ǀ column-definition: >______column-name__data-type_____________________________________________> <____________________________________________________________________>_____________________________________________________________________ǀ___>< ǀ_default-clause__________________________________________________ǀ ǀ_NOT NULL________________________________________________________ǀ ǀ_column-constraint_______________________________________________ǀ ǀ_generated-clause________________________________________________ǀ ǀ_check-constraint________________________________________________ǀ ǀ_FIELDPROD__program-name_________________________________________ǀ ǀ ǀ <_,________ ǀ ǀ ǀ ǀ_(___constant_ǀ_)_ǀ ǀ ǀ_AS SECURITY LABEL_______________________________________________ǀ ǀ_IMPLICITLY HIDDEN_______________________________________________ǀ ǀ_INLINE LENGTH__integer__________________________________________ǀ data-type: >>______built-in-data-type________________________________________________>< ǀ_distinct-type-name_____ǀ built-in-type: >__SMALLINT_____________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)_______________________ ǀ ǀ__DECIMAL____ǀ__________________________________ǀ_____________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer_________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ___________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ___________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ________________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)____ǀ ǀ ǀ ǀ_FOR___SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ__CCSID 1208_____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ_____________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ_BIT___ǀ ǀ ǀ ǀ __(1)______________ ǀ_CCSID1208_____________ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ_______________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ___CCSID 1200_ǀ ǀ ǀ ǀ ___(1M)____________ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_____________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING__(integer)_______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer_________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE_______________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ____ǀ___________________ǀ__________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID________________________________________________________________________________________ǀ ǀ_XML__( XML-type-modifier_)___________________________________________________________________ǀ XML-type-modifier: >>__XMLSCHEMA XML-schema-specification____________________________________> ǀ_ELEMENT_element-name__ǀ XML-schema-specification: >>__ID registered-XML-schema-name_________________________________________> ǀ_URL target-namespace____________________________________ǀ ǀ_NO NAMESPACE_________ǀ ǀ_LOCATION_schema-location_ǀ default-clause: _WITH_ >>_ǀ______ǀ__DEFAULT_____________________________________________________>< ǀ_constant_______________________________ǀ ǀ_SESSION_USER___________________________ǀ ǀ ǀ_USER_______ǀ ǀ ǀ_CURRENT SQLID__________________________ǀ ǀ_NULL___________________________________ǀ ǀ_cast-function-name_(_constant________)_ǀ ǀ_SESSION_USER__ǀ ǀ ǀ_USER_______ǀǀ ǀ_CURRENT SQLID_ǀ ǀ_NULL__________ǀ column-constraint: >>__reference-clause______________________________________________________> ǀ_check-constraint_ǀ generated-clause: _ALWAYS_____ >>__GENERATED__ǀ____________ǀ____________________________________________>< ǀ ǀ_BY DEFAULT_ǀ ǀ_as-identity-clause_____________ǀ ǀ ǀ _ALWAYS_ ǀ_as-row-change-timestamp-clause_ǀ ǀ ǀ_GENERATED_ǀ________ǀ___as-row-transaction-start-id clause____ǀ ǀ_as-ow-transaction-timestamp-clause____ǀ ǀ_as-generated-expression-clause_______ǀ as-identity-clause: >>__AS IDENTITY__________________________________________________________>< ǀ <_,______________________________________ ǀ ǀ_(______START WITH___numeric-constant________ǀ__)_ǀ ǀ _1________________ ǀ ǀ_INCREMENT BY_ǀ_numeric-constant_ǀ__ǀ ǀ _CACHE 20_______ ǀ ǀ_ǀ_NO CACHE_______ǀ_________________ǀ ǀ ǀ_CACHE__integer_ǀ ǀ ǀ _NO CYCLE_ ǀ ǀ_ǀ_CYCLE____ǀ_______________________ǀ ǀ _NO MAXVALUE________________ ǀ ǀ_ǀ_MAXVALUE__numeric-constant_ǀ_____ǀ ǀ _NO MINVALUE_________________ ǀ ǀ_ǀ_MINVALUE__numeric-constant__ǀ____ǀ ǀ _NO ORDER_ ǀ ǀ_ǀ__________ǀ_______________________ǀ ǀ_ORDER____ǀ as-row-change-timestamp-clause: >>__FOR EACH ROW ON UPDATE AS ROW CHANGE TIMESTAMP_______________________> as-row-transaction-timestamp-clause: >>__AS ROW__BEGIN________________________________________________________> ǀ_END_ǀ as-row-transaction-id-clause: >>__AS TRANSACTION START ID______________________________________________> non-deterministic-expression: >>__DATA CHANGE OPERATION________________________________________________> ǀ_special-register______ǀ ǀ_session-variable______ǀ special-register: >>__CURRENT CLIENT_ACCTING_______________________________________________> ǀ_CURRENT CLIENT_APPLAME________ǀ ǀ_CURRENT CLIENT_CORR_TOKEN_____ǀ ǀ_CURRENT CLIENT_USERID_________ǀ ǀ_CURRENT CLIENT_WRKSTNNAME_____ǀ ǀ_CURRENT SERVER________________ǀ ǀ_CURRENT SQLID_________________ǀ ǀ_SESSION_USER__________________ǀ session-variable: >>__SYSIBM.PACKAGE_NAME__________________________________________________> ǀ_SYSIBM.PACKAGE_SCHEMA_________ǀ ǀ_SYSIBM.PACKAGE_VERSION________ǀ column-alteration: >>_column-name_SET_DATATYPE_altered-data-type_____________________________> ǀ ǀ ǀ_INLINE LENGTH_integer_ǀ ǀǀ ǀ ǀ__default-clause______________________________________ǀǀ ǀ ǀ_INLINE LENGTH__integer_______________________________ǀǀ ǀ ǀ_GENERATED__ALWAYS____________________________________ǀǀ ǀ ǀ_BY DEFAULT_ǀǀ_identity-alteration_________ǀǀ ǀ ǀ_as-row-transaction-tmsp-cls_ǀǀ ǀ ǀ_as-row-transaction-id-cls___ǀǀ ǀ__DROP DEFAULT_____________________________________________ǀ altered-data-type: >__SMALLINT_________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ_ǀ_BIGINT___ǀ ǀ ǀ ____(5,0)_______________________ ǀ ǀ__DECIMAL_____ǀ________________________________ǀ__________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ_______________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ_______________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)__________ ǀ ǀ_______CHARACTER____ǀ_______________ǀ_____________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)___ǀ ǀ ǀ_FOR___SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)_ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR___________ǀ ǀ ǀ ǀ ǀ _(1M)______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT___ǀ____________ǀ________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ ǀ_(_integer_)_ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB_____________________ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ___________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ ǀ __(1M)_____________ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ_________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)____________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)__________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_______________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)___ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ___TIMESTAMP_ǀ____________ǀ____ǀ___________________ǀ______________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_XML__( XML-type-modifier_)_______________________________________________________ǀ XML-type-modifier: >>__XMLSCHEMA XML-schema-specification_____________________________> ǀ_ELEMENT_element-name__ǀ XML-schema-specification: >>__ID registered-XML-schema-name__________________________________> ǀ_URL target-namespace___________________________________ǀ ǀ_NO NAMESPACE_________ǀ ǀ_LOCATION_schema-location_ǀ identity-alteration: <_ ,______________________________________ >>__RESTART________________________________________________________>< ǀ ǀ____ WITH___numeric-constant________ǀ ǀ_SET_INCREMENT BY___numeric-constant___________ǀ ǀ_SET_NO MINVALUE_______________________________ǀ ǀ____ǀ_MINVALUE__numeric-constant__ǀ____________ǀ ǀ_SET_NO MAXVALUE_______________________________ǀ ǀ___ǀ_MAXVALUE__numeric-constant_ǀ______________ǀ ǀ_SET_ NO CACHE ________________________________ǀ ǀ ǀ_CACHE__integer_ǀ ǀ ǀ_SET__NO CYCLE_________________________________ǀ ǀ ǀ_CYCLE____ǀ ǀ ǀ_SET__NO ORDER_________________________________ǀ ǀ____ǀ_ORDER____ǀ_______________________________ǀ unique-constraint: <_,_________ >>________________________________PRIMARY KEY_ _(__column-nameǀ_)_______> ǀ_CONSTRAINT__constraint-name_ǀ ǀ_UNIQUE____ǀ >_______________________________________________________________________>< ǀ_,_BUSINESS_TIME_WITHOUT_OVERLAPS_ǀ referential-constraint: >>__________________________________FOREIGN KEY_________________________> ǀ_CONSTRAINT__constraint-name_ǀ </_><_ ,________________________________________ >__(_column-name_____________________________________________ǀ)_________> ǀ_PERIOD_BUSINESS_TIME_ǀ >__references-clause____________________________________________________>< references-clause: >>__REFERENCES__table-name______________________________________________> ǀ </_><_ ,________________________________ ǀ ǀ_(_column-name________________________ǀ_)_ǀ ǀ_PERIOD BUSINESS TIME_ǀ >_______________________________________________________________________>< ǀ_ON DELETE____RESTRICT____ǀ ǀ_NO ACTION_ǀ ǀ_CASCADE___ǀ ǀ_SET NULL__ǀ _ENFORCED______ _ENABLE QUERY OPTIMIZATION_ >__ǀ_______________ǀ_________________ǀ___________________________ǀ______>< ǀ_NOT ENFORCED__ǀ check-constraint: >>____________________________________CHECK__(check-condition)__________>< ǀ_CONSTRAINT__constraint-name_ǀ partitioning-clause: _RANGE_ <_,__________________ >>_____ǀ_______ǀ__(___partition-expression_ǀ_)__________________________> </_><_ ,________________ >__(__partition-element__ǀ__)__________________________________________>< partitioning-expression: _NULLS LAST_ __ASC__ >>__column-name__ǀ___________ǀ__ǀ_______ǀ______________________________> ǀ_DESC__ǀ partition-element: _AT_ </_><_ ,______ _INCLUSIVE_ >>__ ENDING_ǀ____ǀ_(___constant_ǀ_)_ǀ___________ǀ_______________________>< ǀ ǀ_MAXVALUE_ǀ ǀ ǀ ǀ_MINVALUE_ǀ ǀ ǀ_HASH SPACE_integer___K____________________________________ǀ ǀ_M_ǀ ǀ_G_ǀ partition-clause: _AT_ <_,______ _INCLUSIVE_ >>_ ENDING_ǀ____ǀ_(___constant_ǀ_)_ǀ___________ǀ________________________>< ǀ ǀ_MAXVALUE_ǀ ǀ ǀ ǀ_MINVALUE_ǀ ǀ ǀ_HASH SPACE_integer___K____________________________________ǀ ǀ_M_ǀ ǀ_G_ǀ partition-rotation: _AT_ <_,______ _INCLUSIVE_ >>_ENDING__ǀ____ǀ_(___constant_ǀ_)_ǀ___________ǀ_____RESET_____________> ǀ_MAXVALUE_ǀ ǀ_MINVALUE_ǀ extra-row-option: >>__ON DELETE ADD EXTRA ROW___________________________________________>< materialized-query-definition: >>__(_fullselect_) refreshable-table-options___________________________> refreshable-table-options: >>__DATA INITIALLY DEFERRED__REFRESH DEFERRED__________________________> <_________________________________>___ ________________________________ǀ_____________________________>< ǀ _MAINTAINED BY SYSTEM_ ǀ ǀ_ǀ______________________ǀ_______ǀ ǀ ǀ_MAINTAINED BY USER___ǀ ǀ ǀ _ENABLE QUERY OPTIMIZATION__ ǀ ǀ_ǀ____________________________ǀ_ǀ ǀ_DISABLE QUERY OPTIMIZATION_ǀ materialized-query-table-alteration: <_____________________________ >>_SET_____MAINTAINED BY SYSTEM__________ǀ____________________________> ǀǀ_MAINTAINED BY USER___ǀ ǀ ǀ__ENABLE_QUERY OPTIMIZATION___ǀ ǀ_DISABLE_QUERY OPTIMIZATION_ǀ period-definition: >>_SYSTEM_TIME_(_begin-column-name,end-column-name_)___________________> ǀ _EXCLUSIVE_ ǀ ǀ_BUSINESS_TIME_(_begin-column-name,end-column-name_)_ǀ___________ǀǀ ǀ_INCLUSIVE_ǀ organization-clause: <_______________ _HASH SPACE_64M__________ >>_UNIQUE__(_column-name_)_ǀ___ǀ_________________________ǀ_____________> ǀ_HASH SPACE_integer__K___ǀ ǀ_M_ǀ ǀ_G_ǀ </_______________></_________________________________></_></____________________________________________________________________></_________________________________________________>
ALTER TABLESPACE
>>__ALTER TABLESPACE______________________table-space-name_____________> ǀ_database-name._ǀ <________________________________________>______BUFFERPOOL__bpname___________________ǀ_____________________>< ǀ_LOCKSIZE____ANY____________________ǀ ǀ___________ǀ_TABLESPACE_ǀ ǀ ǀ ǀ_TABLE______ǀ ǀ ǀ ǀ_PAGE_______ǀ ǀ ǀ ǀ_ROW________ǀ ǀ ǀ ǀ_LOB________ǀ ǀ ǀ_LOCKMAX____SYSTEM__________________ǀ ǀ ǀ_integer_ǀ ǀ ǀ_CLOSE____YES_______________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_USING____VCAT__catalog-name________ǀ ǀ ǀ_STOGROUP__stogroup-name_ǀ ǀ ǀ_PRIQTY__integer____________________ǀ ǀ_SECQTY__integer____________________ǀ ǀ_ERASE____YES_______________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_FREEPAGE__integer__________________ǀ ǀ_PCTFREE__integer___________________ǀ ǀ_COMPASS_____YES____________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_DROP PENDING CHANGES_______________ǀ ǀ_DSSIZE_integer_G___________________ǀ ǀ__MEMBER CLUSTER YES________________ǀ ǀ ǀ_MEMBER CLUSTER NO________________ǀ ǀ_SEGSIZE_integer____________________ǀ ǀ_GBPCACHE____CHANGED________________ǀ ǀ ǀ_ALL_____ǀ ǀ ǀ ǀ_SYSTEM__ǀ ǀ ǀ ǀ_NONE____ǀ ǀ ǀ_LOCKPART____YES____________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_MAXROWS__integer___________________ǀ ǀ_MAXPARTITIONS_integer______________ǀ ǀ_TRACKMOD____YES____________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_LOGGED_____________________________ǀ ǀ ǀ_NOT LOGGED__ǀ ǀ ǀ_CCSID__ccsid-value_________________ǀ ǀ_PAGENUM RELATIVE___________________ǀ ǀ_PAGENUM ABSOLUTE_ǀ >>__ALTER PARTITION__integer_____________________________________________> ǀ_USING____VCAT__catalog-name_________ǀ ǀ ǀ_STOGROUP__stogroup-name_ǀ ǀ ǀ_PRIQTY__integer_____________________ǀ ǀ_SECQTY__integer_____________________ǀ ǀ_ERASE____YES________________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_FREEPAGE__integer___________________ǀ ǀ_PCTFREE__integer____________________ǀ ǀ_COMPRESS____YES_____________________ǀ ǀ ǀ_NO__ǀ ǀ ǀ_GPBCACHE____CHANGED_________________ǀ ǀ ǀ_ALL_____ǀ ǀ ǀ ǀ_SYSTEM__ǀ ǀ ǀ ǀ_NONE____ǀ ǀ ǀ_DSSIZE_integer_G____________________ǀ ǀ_TRACKMOD____YES_____________________ǀ ǀ_NO__ǀ </________________________________________>
ALTER TRIGGER (advanced)
>>_ALTER TRIGGER_trigger_-name___________________________________________> _ALTER_ _ACTIVE VERSION________________ >__ǀ______ǀ_ǀ_______________________________ǀ__option-list__________________>< ǀ ǀ ǀ ǀ ǀ ǀ_VERSION trigger-version-id____ǀ ǀ ǀ _ ACTIVE VERSION______________ ǀ ǀ_REPLACE__ǀ______________________________ǀ_trigger-specification___ǀ ǀ ǀ ǀ ǀ ǀ ǀ_VERSION trigger-version-id___ǀ ǀ ǀ_ADD VERSION_trigger-version-id__trigger-specification_____________ǀ ǀ_ACTIVATE VERSION trigger-version-id_______________________________ǀ ǀ _ACTIVE VERSION_____________ ǀ ǀ_REGENERATE__ǀ____________________________ǀ_trigger-specification__ǀ ǀ ǀ ǀ ǀ ǀ ǀ_VERSION trigger-version-id_ǀ ǀ ǀ_DROP VERSION-trigger-version-id___________________________________ǀ trigger-specification: >>__trigger-activation-time__trigger-event__ON___table-name_______________> ǀ_view-name_____ǀ >_________________________________________________________________________> ǀ <______________________________________ ǀ ǀ _AS_ ǀ ǀ ǀ_REFERENCING_____OLD__ǀ____ǀ__correlation-name______ǀ_____ǀ ǀ _AS_ ǀ ǀ_NEW__ǀ____ǀ__correlation-name____ǀ ǀ _AS_ ǀ ǀ_OLD TABLE_____ǀ____ǀ__identifier_ǀ ǀ _AS_ ǀ ǀ_NEW TABLE_____ǀ____ǀ__identifier_ǀ >____trigger-granularity______________________triggered-action_____________> ǀ_option-list____ǀ trigger-activation-time >>____NO CASCADE BEFORE____________________________________________________> ǀ_AFTER_______________ǀ ǀ_INSTEAD OF________ǀ trigger-event: >____INSERT________________________________________________________________> ǀ_DELETE__________________________ǀ ǀ_UPDATE__________________________ǀ ǀ <_ ,___________ ǀ ǀ_OF___column-name_ǀ__ǀ trigger-granularity: >_____FOR EACH ROW_________________________________________________________>< ǀ_FOR EACH STATEMENT_ǀ option-list: >__DISALLOW DEBUG MODE_____APPLICATION ENCODING SCHEME ASCII_______________> ǀ_ALLOW DEBUG MODE___ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_DISABLE DEBUG MODE_ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ >_QUALIFIER schema-name__ ASUTIME_NO LIMIT_________________________________> ǀ_ASUTIME LIMIT_int_ǀ >__________________________________________________________________________> ǀ_WLM ENVIRONMENT FOR DEBUG MODE name__ǀ >__CURRENT DATA NO_____CONCURRENT ACCESS RESOLUTION USE CURRENTLY COMMITTED_> ǀ_CURRENT DATA YES_ǀǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME______ǀ >____DYNAMICRULES RUN_______________WITHOUT IMMEDIATE WRITE_________________> ǀ_DYNAMICRULES BIND______ǀ ǀ_WITH IMMEDIATE WRITE___ǀ >__WITHOUT EXPLAIN____ISOLATION LEVEL CS_________OPHINT__’ ‘________________> ǀ_WITH EXPLAIN___ǀǀ_ISOLATION LEVEL RS_ǀ ǀ_OPHINT_string-constant_ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ </_><_ ,______ >_SQL PATH__schema-nameǀ______RELEASE AT COMMIT_____________________________> ǀ_SCHEMA PATH__ǀ ǀ_RELEASE AT DEALLOCATE_ǀ ǀ_SESSION USER_ǀ ǀ_USER_ǀ >___________________________________________________________________________> ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_DATE FORMAT ISO___ ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_DATE FORMAT LOCAL_ ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________FOR UPDATE CLAUSE REQUIRED_______________________> ǀ_DECIMAL(15)___ ǀ ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_DECIMAL(31)___ ǀ ǀ_DECIMAL(15,s)_ ǀ ǀ_DECIMAL(31,s)_ ǀ >___________________________________________________________________________> ǀ_TIME FORMAT ISO___ǀ ǀ_NOT SECURED_ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_SECURED_____ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ _YES_ ǀ ǀ_SYSTIMESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_BUSTIMESENSITIVE(_ǀ_NO__ǀ_)__ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ ǀ ǀ_ARCHIVESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_APPLCOMPAT(__level__)_ǀ >__________________________________________________________________________>< ǀ_CONCENTRATE STATEMENTS OFF__________ǀ ǀ_CONCENTRATE STATEMENT WITH LITERALS_ǀ triggered-action: >>________________________________________SQL trigger body__________________> ǀ_WHEN__(__search-condition__)_ǀ SQL-trigger-body: >_____SQL-control-statement________________________________________________>< ǀ_trigger-SQL-statement__ǀ
ALTER TRIGGER (basic)
>>_ALTER TRIGGER_trigger-name____NOT SECURED_______________________________> ǀ_SECURED_ǀ
ALTER TRUSTED CONTEXT
>>_ALTER TRUSTED CONTEXT_context-name______________________________________> <_______________________________________________________________________ <_____________________________________________________________________ ǀ >___ALTER___SYSTEM AUTHID__authorization-name_________________________ǀ_ǀ_>< ǀ ǀ_NO DEFAULT ROLE___________________________________________ǀ_ǀ ǀ ǀ ǀ ǀ _WITHOUT ROLE AS OBJECT OWNER_ ǀ ǀ ǀ ǀ ǀ ǀ_DEFAULT ROLE role-name_ǀ______________________________ǀ_ǀ ǀ ǀ ǀ ǀ ǀ_WITH ROLE AS OBJECT OWNER____ǀ ǀ ǀ ǀ ǀ__ENABLE_____________________________________________________ǀ ǀ ǀ ǀ ǀ_DISABLE_ǀ ǀ ǀ ǀ ǀ_NO DEFAULT SECURITY LABEL___________________________________ǀ ǀ ǀ ǀǀ_DEFAULT SECURITY LABEL_seclabel-name_ǀ ǀ ǀ ǀ ǀ <__,_________________________________ ǀ ǀ ǀ ǀ_ATTRIBUTES________(______ADDRESS__address-value__________ǀ_)ǀ ǀ ǀ ǀ ǀ_ENCRYPTION_encryption-value___ǀ ǀ ǀ ǀ ǀ ǀ_SERVAUTH_servauth-value_______ǀ ǀ ǀ ǀ ǀ_JOBNAME__jobname-value____________ǀ ǀ ǀ <__,_________________________________ ǀ ǀ_ADD_ATTRIBUTES___(______ADDRESS__address-value__________ǀ_)___________ǀ ǀ ǀ ǀ_SERVAUTH_servauth-value_______ǀ ǀ ǀ ǀ ǀ_JOBNAME__jobname-value____________ǀ ǀ ǀ <__,_________________________________ ǀ ǀ_DROP_ATTRIBUTES__(______ADDRESS__address-value__________ǀ_)___________ǀ ǀ ǀ ǀ_SERVAUTH_servauth-value_______ǀ ǀ ǀ ǀ ǀ_JOBNAME__jobname-value____________ǀ ǀ ǀ_user-clause___________________________________________________________ǀ user-clause: <_,______________________________________________ >>__ADD USE FOR _____authorization-name_____________________________ǀ______>< ǀ ǀ ǀ_ use-options _ǀ ǀǀ ǀ ǀ_EXTERNAL SECURITY PROFILE profile-name_______________ǀǀ ǀ ǀ _WITHOUT AUTHENTICATION_ ǀ_use-options_ǀǀ ǀ ǀ_PUBLIC______ǀ________________________ǀ_______ǀ ǀ ǀ ǀ_WITH AUTHENTICATION____ǀ ǀ ǀ <_,____________________________________________ ǀ ǀ_REPLACE USE FOR_______authorization-name _______________________ǀ__ǀ ǀ ǀ ǀ_ use-options _ǀ ǀ ǀ ǀ ǀ _WITHOUT AUTHENTICATION_ ǀ ǀ ǀ ǀ_PUBLIC______ǀ________________________ǀ_______ǀ ǀ ǀ ǀ_WITH AUTHENTICATION____ǀ ǀ ǀ <_,_________________________________________ ǀ ǀ_DROP USE FOR_______authorization-name________________________ǀ_____ǀ ǀ_EXTERNAL SECURITY PROFILE_profile-name_ǀ ǀ__PUBLIC_____________ǀ use-options: >>______________________________________________________________________> ǀ_ROLE_role-name_ǀ ǀ_SECURITY LABEL-seclabel-name_ǀ _WITHOUT AUTHENTICATION_ >>__________________________________________ǀ________________________ǀ_>< ǀ_WITH AUTHENTICATION____ǀ
ALTER VIEW
>>__ALTER VIEW__view-name___REGENERATE_________________________________>
ASSOCIATE LOCATORS
_RESULTS SET_ >>__ASSOCIATE__ǀ_____________ǀ____LOCATOR______________________________> ǀ_LOCATORS_ǀ <_ ,___________________ >__(____rs-locator-variable_ǀ__)_______________________________________> >__WITH PROCEDURE____procedure-name___________________________________>< ǀ_host-variable__ǀ
BEGIN DECLARE SECTION
>>__BEGIN DECLARE SECTION_____________________________________________><
CALL
>>__CALL____procedure-name_____________________________________________> ǀ_variable__ǀ >_________________________________________________________________>< ǀ_(_________________________________________)_ǀ ǀ ǀ <_,__________________________ ǀ ǀ ǀ ǀ_____expression_______________ǀ_ǀ ǀ ǀ ǀ_NULL_________________________ǀ ǀ ǀ ǀ_TABLE__transition-table-name_ǀ ǀ ǀ_USING DESCRIPTOR__descriptor-name___________ǀ
CLOSE
>>__CLOSE__cursor-name_________________________________________________><
COMMENT ON
>>__COMMENT ON_________________________________________________________> >_____alias-designator______________________________IS_string-constant_>< ǀ ǀ_COLUMN_____table-name____.column-name_____________ǀǀ ǀ ǀ ǀ_view-name__ǀ ǀǀ ǀ ǀ _ACTIVE VERSION_____________ ǀǀ ǀ ǀ_function-designator_ǀ____________________________ǀǀǀ ǀ ǀ ǀ_VERSION_routine-version-id_ǀǀǀ ǀ ǀ_INDEX_ index-name_________________________________ǀǀ ǀ ǀ_PACKAGE_collection-id.package-name________________ǀǀ ǀ ǀ ǀ _VERSION_ ǀǀǀ ǀ ǀ ǀǀ_________ǀ_id_ǀǀǀ ǀ ǀ_PLAN_plan-name____________________________________ǀǀ ǀ ǀ _ACTIVE VERSION________ ǀǀ ǀ ǀ_PROCEDURE_procedure-name_ǀ_______________________ǀǀǀ ǀ ǀ ǀ_VERSION_rt-ver-id_____ǀǀǀ ǀ ǀ_ROLE_role-name____________________________________ǀǀ ǀ ǀ_SEQUENCE_sequence-name____________________________ǀǀ ǀ ǀ_TABLE____table-name_______________________________ǀǀ ǀ ǀ ǀ_view-name__ǀ ǀǀ ǀ ǀ_TRIGGER__trigger-name_____________________________ǀǀ ǀ ǀ_TRUSTED CONTEXT_context-name______________________ǀǀ ǀ ǀ_TYPE_____distinct-type-name_______________________ǀǀ ǀ ǀ_MASK_____mask-name________________________________ǀǀ ǀ ǀ_PERMISSION_permission-name________________________ǀǀ ǀ_multiple-column_list_________________________________ǀ alias-designator: _FOR TABLE______ >>____________ALIAS_alias-name_ ǀ________________ǀ____________________> ǀ_PUBLIC__ǀ ǀ_FOR SEQUENCE___ǀ multiple-column-list <_ ,_____________________________ >>__table-name_________(_column-name__IS__string-constant_ǀ__)________> ǀ_view-name__ǀ function-designator >>__ FUNCTION__function-name__________________________________________> ǀ ǀ </_><_ ,____________________ ǀ ǀ ǀ ǀ_(_______________________ǀ_)_ǀ ǀ ǀ ǀ___________________ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ____SPECIFIC FUNCTION_specific-name__________________________ǀ parameter-type >>____data-type_______________________________________________________>< ǀ_AS LOCATOR_____ǀ data-type: >>____built-in-data-type______________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type >__SMALLINT________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)________________________ ǀ ǀ__DECIMAL____ǀ___________________________________ǀ_______________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer__________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ______________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT___ǀ_______________ǀ_____________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL____________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE___ǀ___________ǀ__ǀ ǀ ǀ __(1)____________ ǀ ǀ_______CHARACTER____ǀ_________________ǀ__________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)_____ǀ ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length___)__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)_____________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ__________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ ǀ __(1M)_____________ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)_______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)_____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ__________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer__________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE__________________________________________________________________________________ǀ ǀ ǀ_TIME__________________________________________________________________________________ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ______________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID___________________________________________________________________________________ǀ
COMMIT
_WORK_ >>__COMMIT__ǀ______ǀ_____________________________________________________><
CONNECT
>>__CONNECT______________________________________________________________>< ǀ_TO_____location-name______________________ǀ ǀ ǀ_host-variable_ǀ ǀ_authorization_ǀ ǀ ǀ_RESET_____________________________________ǀ ǀ_authorization_____________________________ǀ authorization >>__USER__host-variable__USING__host-variable____________________________><
CREATE ALIAS
>>__CREATE __________ALIAS__ǀ table-alias ǀ___________________________>< ǀ_PUBLIC_ǀ ǀ_sequence-alias ǀ >>__alias-name__FOR____TABLE_________table-name__________________________>< ǀ_view-name___ǀ ǀ_alias-name2_ǀ >>__alias-name___FOR____SEQUENCE____sequence-name________________________><
CREATE AUXILIARY TABLE
>>__CREATE____AUXILIARY_____TABLE__aux-table-name__IN____________________> ǀ_AUX_______ǀ >____________________table-space-name__STORES__table-name________________> ǀ_database-name._ǀ >__APPEND NO_____COLUMN__column-name_____________________________________>< ǀ_APPEND YES_ǀ ǀ_PART__integer_ǀ
CREATE DATABASE
>>__CREATE DATABASE__database-name_______________________________________> <____________________________________________>_______________________________________________ǀ________________________>< ǀ_BUFFERPOOL__bpname_____________________ǀ ǀ_INDEXBP__bpname________________________ǀ ǀ_AS____WORKFILE_________________________ǀ ǀ ǀ_FOR__member-name_ǀ ǀ ǀ _SYSDEFLT______ ǀ ǀ_STOGROUP__ǀ_stogroup-name_ǀ____________ǀ ǀ_CCSID____ASCII_________________________ǀ ǀ_EBCDIC__ǀ ǀ_UNICODE_ǀ
CREATE FUNCTION (compiled SQL scalar)
>>__CREATE FUNCTION__function-name__(______________________________)___> ǀ <_ ,____________________ ǀ ǀ___parameter-declaration_ǀ_ǀ _VERSION V1_________________ >__RETURNS_data-type2__ǀ____________________________ǀ__option-list____>< ǀ_VERSION routine-version-id_ǀ parameter-declaration: >>______________________parameter-type________________________________>< ǀ_parameter-name_ǀ parameter-type: >>____data-type______________________________________________________>< ǀ ǀ_AS LOCATOR____ǀ ǀ ǀ_TABLE LIKE____table-name____AS LOCATOR_ǀ ǀ_view-name__ǀ data-type: >>____built-in-data-type_____________________________________________>< ǀ_disctinct-type-name_ǀ ǀ_array-type-name_____ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ_ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer_________________)____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_length__)____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)________ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ_____________ǀ_________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)_____________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICDOE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)____________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ_________________________ǀ_____ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer_________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ ǀ_XML_______________________________________________________________________________________ǀ SQL-control-body: >>__SQL-control-statement__________________________________________________> option-list: >__LANGUAGE SQL____________________________________________________________> ǀ_SPECIFIC specific-name______ǀ >_____NOT DETERMINISTIC_______EXTERNAL ACTION______________________________> ǀ_DETERMINISTIC_____ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA__________CALLED ON NULL INPUT_________________________> ǀ_CONTAINS SQL_______ǀ ǀ_RETURNS NULL ON NULL INPUT_ǀ ǀ_MODIFIES SQL DATA__ǀ >_____STATIC DISPATCH___________ALLOW PARALLEL_____________________________> ǀ_DISALLOW PARALLEL_ǀ >__DISALLOW DEBUG MODE______PARAMETER CCSID ASCII____QUALIFIER schema-name_> ǀ_ALLOW DEBUG MODE____ǀǀ_PARAMETER CCSID EBCDIC__ǀ ǀ_DISABLE DEBUG MODE__ǀǀ_PARAMETER CCSIS UNICODE_ǀ >__PACKAGE OWNER__authorization-name____ASUTIME_NO LIMIT___________________> ǀ_ASUTIME_LIMIT__integer_ǀ >__INHERIT SPECIAL REGISTERS_____WLM ENVIRONMENT FOR DEBUG MODE name_______> ǀ_DEFAULT SPECIAL REGISTERS_ǀ >__CURRENT DATA NO_____CONCURRENT ACCESS RESOLUTION USE CURRENTLY COMMITTED_> ǀ_CURRENT DATA YES_ǀǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME______ǀ >____DYNAMICRULES RUN_______________________________________________________> ǀ_DYNAMICRULES BIND_______ǀ ǀ_APPLICATION ENCODING SCHEME ASCII___ǀ ǀ_DYNAMICRULES DEFINEBIND_ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_DYNAMICRULES DEFINERUN__ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ ǀ_DYNAMICRULES INVOKEBIND_ǀ ǀ_DYNAMICRULES INVOKERUN__ǀ >__WITHOUT EXPLAIN____ISOLATION LEVEL CS___OPHINT__’ ‘______________________> ǀ_WITH EXPLAIN___ǀǀ_ISOLATION LEVEL RS_ǀ ǀ_OPHINT_string-constant_ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ </_><_ ,______ >_SQL PATH__schema-nameǀ______REOPT NONE_____VALIDATE RUN______DEGREE 1_____> ǀ_SCHEMA PATH__ǀ ǀ_REOPT ALWAYS_ǀǀ_VALIDATE BIND_ǀǀ_DEGREE ANY_ǀ ǀ_SESSION USER_ǀ ǀ_REOPT ONCE___ǀ ǀ_USER_ǀ >___________________________________________________________________________> ǀ_QUERY ACCELERATION NONE________________ǀ ǀ_GET_ACCEL_ARCHIVE_NO___ǀ ǀ_QUERY ACCELERATION ENABLE______________ǀ ǀ_GET_ACCEL_ARCHIVE_YES__ǀ ǀ_QUERY ACCELRATION ENABLE WITH FAILBACK_ǀ ǀ_QUERY ACCELERATION ELIGIBLE____________ǀ ǀ_QUERY ACCELERATION ALL_________________ǀ >___________________________________________________________________________> ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_DATE FORMAT ISO___ ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_EVEN_ǀ ǀ_DATE FORMAT LOCAL_ ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________FOR UPDATE CLAUSE REQUIRED_______________________> ǀ_DECIMAL(15)___ǀ ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_DECIMAL(31)___ǀ ǀ_DECIMAL(15,s)_ǀ ǀ_DECIMAL(31,s)_ǀ >____________________________SECURED________________________________________> ǀ_TIME FORMAT ISO___ǀ ǀ_NOT SECURED_ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ _BUSINESS TIMESENSITIVE YES_ _SYSTEM TIMESENSITIVE YES_ >____ǀ____________________________ǀ___ǀ__________________________ǀ___________> ǀ_BUSINESS TIMESENSITVE NO __ǀ ǀ_SYSTEM TIMESENSITIVE YES_ _ARCHIVE SENSITIVE YES__ >____ǀ________________________ǀ______________________________________________>< ǀ_ARCHIVE SENSITIVE NO __ǀ ǀ_APPLCOMPAT_compatibility-level_ǀ external-java-routine-name ǀ__ ___________ __method-name___ __________________ __________________ǀ ǀ_jar-name:_ǀ ǀ_method-signature_ǀ jar-name ǀ__ _______________ __jar-id__________________________________________ǀ ǀ_schema-name._ ǀ method-name <_________________________ ǀ___ _______________________ ǀ__class-id__ _.____ __method-id________ǀ ǀ_package-id_ _._____ __ǀ ǀ_!____ǀ ǀ_/_____ǀ method-signature ǀ__ ________________________________________________________________ǀ ǀ_(_ ___________________ _)_ǀ ǀ <_,___________ ǀ ǀ___java-datatypeǀ__ǀ
CREATE FUNCTION (external scalar)
>>__CREATE FUNCTION__function-name__(_______________________________)___> ǀ <_ ,_____________________ ǀ ǀ____parameter_declaration_ǀ_ǀ >__RETURNS_____data-type2_________________option-list___________________>< ǀ ǀ_AS LOCATOR_____ǀ ǀ ǀ_data-type3__CAST FROM__data-type4______________________ǀ ǀ_AS LOCATOR___ǀ parameter-declaration: >>____data-type_________________________________________________________>< ǀ ǀ_AS LOCATOR____ǀ ǀ ǀ_TABLE LIKE____table-name____AS LOCATOR_ǀ ǀ_view-name__ǀ data-type: >>____built-in-data-type________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ option-list: >>______________________________________________________________________> ǀ_SPECIFIC_specific-name_ǀ ǀ <___________________________ ǀ ǀ_PARAMETER_CCSID_ ASCII________________ǀ_ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ_VARCHAR__NULTERM_________ǀ ǀ_STRUCTURE_ǀ >__EXTERNAL____________________________LANGUAGE____ASSEMBLE_____________> ǀ_NAME____’string’_____ǀ ǀ_C________ǀ ǀ_identifier_ǀ ǀ_COBOL____ǀ ǀ_JAVA_____ǀ ǀ_PLI______ǀ _PARAMETER STYLE SQL___ _NOT DETERMINISTIC_ _FENCED_ >_ǀ_______________________ǀ_ǀ___________________ǀ_______ǀ________ǀ_____> ǀ_PARAMETER STYLE JAVA__ǀ ǀ_DETERMINISTIC_____ǀ _RETURNS NULL ON NULL INPUT_ _READS SQL DATA____ >__ǀ____________________________ǀ_____ǀ___________________ǀ____________> ǀ_CALLED ON NULL INPUT_______ǀ ǀ_NO SQL____________ǀ ǀ_MODIFIES SQL DATA_ǀ ǀ_CONTAINS SQL______ǀ _EXTERNAL ACTION____ _NO SCRATCHPAD__________ >__ǀ____________________ǀ__ǀ________________________ǀ__________________> ǀ_NO EXTERNAL ACTION_ǀ ǀ _100____ ǀ ǀ_SCRATCHPAD__ǀ________ǀ_ǀ ǀ_length_ǀ _NO FINAL CALL_ _ALLOW PARALLEL____ _NO DBINFO_ >__ǀ_______________ǀ__ǀ___________________ǀ______ǀ___________ǀ_________> ǀ_FINAL CALL____ǀ ǀ_DISALLOW PARALLEL_ǀ ǀ_DBINFO____ǀ _NO COLLID_____________ >__ǀ_______________________ǀ___________________________________________> ǀ_COLLID__collection-id_ǀ ǀ_WLM ENVIRONMENT____name__________ǀ ǀ_(__name__)_ǀ _ASUTIME NO LIMIT________ _STAY RESIDENT NO__ >__ǀ_________________________ǀ__ǀ___________________ǀ__________________> ǀ_ASUTIME__LIMIT__integer_ǀ ǀ_STAY RESIDENT YES_ǀ _PROGRAM TYPE SUB__ _SECURITY DB2__________ >__ǀ___________________ǀ__ǀ_______________________ǀ____________________> ǀ_PROGRAM TYPE MAIN_ǀ ǀ_SECURITY____USER______ǀ ǀ_DEFINER_ǀ _STOP AFTER SYSTEM DEFAULT FAILURES___ >___ǀ______________________________________ǀ___________________________> ǀ_STOP AFTER integer FAILURES__________ǀ ǀ_CONTINUE AFTER FAILURE_______________ǀ >______________________________________________________________________> ǀ_RUN OPTIONS__run-time-options_ǀ _INHERIT SPECIAL REGISTERS_ _STATIC DISPATCH >__ǀ___________________________ǀ_________ǀ________________ǀ____________> ǀ_DEFAULT SPECIAL REGISTERS_ǀ _NOT SECURED_______________ ǀ__ǀ___________________________ǀ______________________________________>< ǀ_SECURED___________________ǀ external-java-routine-name ǀ__ ___________ __method-name___ __________________ ___________________ǀ ǀ_jar-name:_ǀ ǀ_method-signature_ǀ jar-name ǀ__ ______________ __jar-id____________________________________________ǀ ǀ_schema-name._ǀ method-name <_________________________ ǀ___ _______________________ ǀ__class-id__ _.____ __method-id__________ǀ ǀ_package-id_ _.____ ___ǀ ǀ_!____ǀ ǀ_/____ǀ method-signature ǀ__ ____________________________ ______________________________________ǀ ǀ_(_ ___________________ _)_ǀ ǀ <_,___________ ǀ ǀ___java-datatypeǀ__ǀ
CREATE FUNCTION(external table)
>>__CREATE FUNCTION__function-name______________________________________> >__(__ ___________________________ __)_________________________________> ǀ <_ ,_____________________ ǀ ǀ___parameter-declaration_ǀ_ǀ <__,_________________________________ >__RETURNS_TABLE_(_column-name data-type________________ǀ_)_option-list_>< ǀ ǀ_AS LOCATOR_ǀ ǀ ǀ__GENERIC TABLE__________________________ǀ parameter-declaration: >>__ ________________ __parameter-type__________________________________>< ǀ_parameter-name_ǀ parameter-type: >>__ _data-type_____ ________________________ __________________________>< ǀ ǀ_AS LOCATOR____ǀ ǀ ǀ_TABLE LIKE__ _table-name_ __AS LOCATOR_ǀ ǀ_view-name__ǀ data-type: >>____built-in-data-type________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ option-list: >>_______________________________________________________________________> ǀ_SPECIFIC_specific-name_ǀ ǀ <____________________________ ǀ ǀ_PARAMETER CCSID_ ASCII_________________ǀ_ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ_VARCHAR__NULTERM__________ǀ ǀ_STRUCTURE_ǀ >__EXTERNAL____________________________LANGUAGE____ASSEMBLE______________> ǀ_NAME____’string’_____ǀ ǀ_C________ǀ ǀ_identifier_ǀ ǀ_COBOL____ǀ ǀ_PLI______ǀ _PARAMETER STYLE DB2SQL_ _NOT DETERMINISTIC_ _FENCED_ >_ǀ________________________ǀ_ǀ___________________ǀ______ǀ________ǀ______> ǀ_DETERMINISTIC_____ǀ _RETURNS NULL ON NULL INPUT_ _READS SQL DATA____ >__ǀ____________________________ǀ______ǀ___________________ǀ____________> ǀ_CALLED ON NULL INPUT_______ǀ ǀ_NO SQL____________ǀ ǀ_CONTAINS SQL______ǀ _EXTERNAL ACTION____ _NO SCRATCHPAD__________ >__ǀ____________________ǀ__ǀ________________________ǀ___________________> ǀ_NO EXTERNAL ACTION_ǀ ǀ _100____ ǀ ǀ_SCRATCHPAD__ǀ________ǀ_ǀ ǀ_length_ǀ _NO PACKAGE PATH___________ >_ǀ___________________________ǀ_________________________________________> ǀ_PACKAGE PATH package-path_ǀ _NO FINAL CALL_ _NODBINFO_ >__ǀ_______________ǀ_____________________________ǀ__________ǀ___________> ǀ_FINAL CALL____ǀ ǀ_DISALLOW PARALLEL_ǀ ǀ_DBINFO___ǀ _NO COLLID_____________ >__ǀ_______________________ǀ____________________________________________> ǀ_COLLID__collection-id_ǀ ǀ_WLM ENVIRONMENT_____name___________ǀ ǀ_(__name__)_ǀ >_______________________________________________________________________> ǀ_CARDINALITY_integer___ǀ _ASUTIME NO LIMIT________ _STAY RESIDENT NO__ >__ǀ_________________________ǀ___ǀ___________________ǀ__________________> ǀ_ASUTIME__LIMIT__integer_ǀ ǀ_STAY RESIDENT YES_ǀ _PROGRAM TYPE SUB__ _SECURITY DB2___________ >__ǀ___________________ǀ__ǀ________________________ǀ____________________> ǀ_PROGRAM TYPE MAIN_ǀ ǀ_SECURTY______USER______ǀ ǀ_DEFINER_ǀ _STOP AFTER SYSTEM DEFAULT FAILURES____ >___ǀ_______________________________________ǀ___________________________> ǀ_STOP AFTER integer FAILURES___________ǀ ǀ_CONTINUE AFTER FAILURE________________ǀ >_______________________________________________________________________> ǀ_RUN OPTIONS__run-time-options_ǀ _INHERIT SPECIAL REGISTERS_ _STATIC DISPATCH_ >__ǀ___________________________ǀ__________ǀ_________________ǀ__________>< ǀ_DEFAULT SPECIAL REGISTERS_ǀ _NOT SECURED_______________ >__ǀ___________________________ǀ_______________________________________>< ǀ_SECURED___________________ǀ
CREATE FUNCTION (sourced)
>>__CREATE FUNCTION__function-name______________________________________> >__(__ ___________________________ __)_________________________________> ǀ <_ ,_____________________ ǀ ǀ___parameter-declaration_ǀ_ǀ >__RETURNS__data-type2__ _______________ ______________________________> ǀ_AS LOCATOR____ǀ >__ _________________________ __ _______________________________ _____> ǀ_SPECIFIC__specific-name_ǀ ǀ_PARAMETER CCSID__ _ASCII____ _ǀ ǀ_EBCDIC___ǀ ǀ_UNICODE__ǀ >__SOURCE_ _function-name_______________________________ ____________>< ǀ_SPECIFIC__specific-name_____________________ǀ ǀ_function-name__(__ ____________________ __)_ǀ ǀ <_,______________ ǀ ǀ___parameter-type_ǀ_ǀ parameter-declaration: >>__ ________________ __parameter-type________________________________>< ǀ_parameter-name_ǀ parameter-type: >>__ _data-type_____ _________________________ _______________________>< ǀ ǀ_AS LOCATOR_____ǀ ǀ ǀ_TABLE LIKE__ _table-name_ ___AS LOCATOR_ǀ ǀ_view-name__ǀ data-type: >>____built-in-data-type______________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ
CREATE FUNCTION (inline SQL scalar)
>>__CREATE FUNCTION__function-name__(_______________________________)____> ǀ <_ ,____________________ ǀ ǀ____parameter-declaration_ǀ_ǀ _LANGUAGE SQL_ >__RETURNS_data-type2_ǀ______________ǀ_option-list__SQL-routine-body____>< parameter-declaration: >>______________________data-type_________________________________>< ǀ_parameter-name_ǀ data-type: >>____built-in-data-type________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ SQL-control-body: >>__SQL-control-statement__________________________________________________> option-list: >__________________________________________________________________________> ǀ_SPECIFIC specific-name______ǀ >_____NOT DETERMINISTIC________EXTERNAL ACTION_____________________________> ǀ_DETERMINISTIC_____ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA___________CALLED ON NULL INPUT________________________> ǀ_CONTAINS SQL_______ǀ >__ PARAMETER CCSID ASCII___________SECURED_____________STATIC DISPATCH____> ǀ_PARAMETER CCSID EBCDIC__ǀ ǀ_NOT SECURED_ǀ ǀ_PARAMETER CCSID UNICODE_ǀ SQL-routine-body: >>__RETURN statement_______________________________________________________> </_>
CREATE FUNCTION (SQL Table)
>__CREATE FUNCTION__function-name_(______________________________________)_> ǀ <_ ,__________________ ǀ ǀ__________________________ǀ___ǀ ǀ_parameter-declaration_ǀ <_,____________________ >_RETURNS TABLE__(_column-name__data-type2_ǀ_______ options-list___________> >_SQL-routine-body_________________________________________________________> parameter-declaration: >>__parameter-name parameter-type__________________________________________>< parameter-type: >>____data-type1___________________________________________________________>< ǀ_TABLE LIKE___table-name___AS LOCATOR_ǀ ǀ_view name__ǀ data-type1, data-type2: >>____built-in-data-type___________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ option-list: >_____LANGUAGE SQL_______________________________________________________> ǀ_SPECIFIC_specific-name_ǀ >_____NOT DETERMINISTIC________EXTERNAL ACTION___________________________> ǀ_DETERMINISTIC_____ǀ ǀ_NO EXTERNAL ACTION_ǀ >_____READS SQL DATA___________CALLED ON NULL INPUT______________________> ǀ_CONTAINS SQL________ǀ >_____INHERIT SPECIAL REGISTERS__STATIC DISPATCH_________________________> ǀ_CARDINALITY int_ǀ >____SECURED__________PARAMETER CCSID____________________________________> ǀ_NOT SECURED_ǀ ǀ_ASCII___ǀ ǀ_EBCDIC__ǀ ǀ_UNICODE_ǀ SQL-routine-body: >>_RETURN statement_____________________________________________________>< ǀ_BEGIN ATOMIC RETURN statement_END_ǀ
CREATE GLOBAL TEMPORARY TABLE
<____________>>__CREATE GLOBAL TEMPORARY TABLE_table-name_(__column-spec_ǀ_)_________> ǀ_LIKE__table-name_____ǀ ǀ_view-name_ǀ >_______________________________________________________________________> ǀ_CCSID______ASCII_____ǀ ǀ_EBCDIC__ǀ ǀ_UNICODE_ǀ column-spec: >>__column-name_data-type_______________________________________________> ǀ_NOT NULL_ǀ data-type: >>__built-in-data-type__________________________________________________> ǀ_distinct-type_name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ
CREATE INDEX
>>__CREATE_______________________________INDEX__index-name__ON____________> ǀ_UNIQUE__________________ǀ ǀ_WHERE NOT NULL_ǀ <_ ,___________________ _ASC__ ǀ >_table-name_(___column-name_____ǀ________ǀ_ǀ_____________________________> ǀ ǀ_key-expression_ǀ ǀ_DESC___ǀ ǀ ǀ ǀ_RANDOM_ǀ ǀ ǀ_aux-table-name_____________________________ǀ >______________________________________________)__________________________> ǀ___,__BUSINESS_TIME_WITHOUT_OVERLAPS__ǀ ǀ_WITH OVERLAPS____ǀ <________________________________________>>______________________________________________________________________ǀ_> ǀ_XML index-specs_ǀǀ_INCLUDE(column-name)_ǀǀ _NOT CLUSTER_ ǀ ǀ_ǀ_CLUSTER_____ǀ_______ǀ ǀ_PARTITIONED___________ǀ ǀ _NOT PADDED_ ǀ ǀ_ǀ_PADDED_____ǀ________ǀ ǀ_free-block____________ǀ ǀ_using-block___________ǀ ǀ_gbpcache-block________ǀ ǀ _YES_ ǀ ǀ_DEFINE__ǀ_NO__ǀ_______ǀ ǀ _YES_ ǀ ǀ_COMPRESS_ǀ_NO__ǀ______ǀ ǀ _INCLUDE NULL KEYS_ ǀ ǀ_ǀ___________________ǀ_ǀ ǀ_ǀ_EXCLUDE NULL KEYS_ǀ_ǀ >___________________________________________________________________________> ǀ <_ ,_________________________________ ǀ ǀ _RANGE_ <_______________ ǀ ǀ ǀ_PARTITION BY_ǀ_______ǀ__partition-element__________________ǀ_ǀ____)_ǀ ǀ_using-block____ǀ ǀ_free-block_____ǀ ǀ_gbpcache-block_ǀ ǀ_DSSIZE_int_G___ǀ <_______________________________ >___________________________________ǀ_______________________________________>< ǀ_BUFFERPOOL__bpname________ǀ ǀ _YES_ ǀ ǀ_CLOSE__ǀ_NO__ǀ____________ǀ ǀ _NO__ ǀ ǀ_DEFER__ǀ_YES_ǀ____________ǀ ǀ _NO__ ǀ ǀ_COPY__ǀ_YES_ǀ_____________ǀ ǀ_DSSIZE__integer____G______ǀ ǀ_PIECESIZE__integer____K___ǀ ǀ_M_ǀ ǀ_G_ǀ XML-index-specification: >>_GENERATE KEY USING_____XMLPATTERN_xml-pattern-clause_AS_sql-data-type_>< ǀ_GENERATE KEYS USING_ǀ XML-pattern-clause: >>______________________ pattern-expression______________________________>< ǀ_ proglog _ǀ prolog: <______________________________________________________ >>___declare names NOName = StringLiteral ;_______________ǀ_____________>< ǀ_declare default element namespace StringLiteral ;___ǀ pattern-expression: >>________________________________________________________________________> ǀ <_________________________________________ ǀ ǀ___/____forward-axis__element-name_________ǀ_ǀ ǀ_//_ǀǀ ǀ_*_________________ǀ ǀ ǀ ǀ_nsprefix:*________ǀ ǀ ǀ ǀ_*:NOName__________ǀ ǀ ǀ_*_________________________________ǀ >>________________________________________________________________________> ǀ____/____@attribute-name____________________ǀ ǀ_//_ǀǀ_attribute::attribute-name_________ǀ ǀ_@*________________________________ǀ ǀ_attribute::*______________________ǀ ǀ_forward axis__text()______________ǀ Forward-axis: _child::__________________ >>______ǀ__________________________ǀ______________________________________> ǀ_descendant::_____________ǀ ǀ_self::___________________ǀ ǀ_descendant or self::_____ǀ SQL-data-type: >>__SQL__VARCHAR__(integer)_______________________________________________>< ǀ _(34)_ ǀ ǀ_DECFLOAT__ǀ______ǀ____ǀ ǀ_DATE__________________ǀ ǀ _(12)_ ǀ ǀ_TIMESTAMP__ǀ______ǀ___ǀ using-block: >>__USING_________________________________________________________________> >____VCAT__catalog-name______________________________________________>< ǀ <________________________ ǀ ǀ_STOGROUP__stogroup-name___________________________ǀ_____ǀ ǀ _12______ ǀ ǀ_PRIQTY__ǀ_integer_ǀ_ǀ ǀ_SECQTY__integer_____ǀ ǀ _NO__ ǀ ǀ_ERASE__ǀ_YES_ǀ______ǀ free-block: <_____________________________ _0_______ ǀ >>_______FREEPAGE__ǀ_integer_ǀ____ǀ___________________________________>< ǀ _10______ ǀ ǀ_PCTFREE__ǀ_integer_ǀ___ǀ gbpcache-block: _CHANGED_ >>__GBPCACHE__ǀ_ALL_____ǀ________________________________________________>< ǀ_NONE____ǀ partition-element: _AT_ <_,________ _INCLUSIVE_ >>__PARTITION__integer_ENDING__ǀ____ǀ_(__constant_ǀ_)_ǀ___________ǀ______>< ǀ_MAXVALUE_ǀ ǀ_MINVALUE_ǀ
CREATE MASK
>>__CREATE MASK_mask-name_ON_table-name___________________________________> ǀ _AS_ ǀ ǀ__ǀ___ǀ_correlation-name_____ǀ >___FOR COLUMN_column-name____RETURN case-expression___DISABLE____________>< ǀ_ENABLE_ǀ
CREATE PERMISSION
>>__CREATE PERMISSION_permission-name_ON_table-name_________________________> ǀ _AS_ ǀ ǀ_ǀ___ǀ_correlation-name_ǀ >_FOR ROWS WHERE_search-condition__ENFORCED FOR ALL ACCESS__DISABLE________>< ǀ_ENABLE_ǀ
CREATE PROCEDURE (external)
>>__CREATE PROCEDURE__procedure-name________________________________________> <_ ,_______________________ >__(____________________________ǀ__)__option-list_______________________>< ǀ_parameter-declaration_ǀ parameter-declaration: _IN_______ >__ǀ_OUT______ǀ______________________parameter-type________________________> ǀ_INOUT____ǀ ǀ_parameter-name_ǀ parameter-type: >>____data-type___________________________________________________________>< ǀ ǀ_AS LOCATOR____ǀ ǀ ǀ_TABLE LIKE____table-name____AS LOCATOR_ǀ ǀ_view-name__ǀ data-type: >>____built-in-data-type___________________________________________________>< ǀ_distinct-type-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ option-list: _DYNAMIC RESULT SET 0______________ǀ >>__ǀ___________________________________ǀ_______________________________> ǀ_DYNAMIC__RESULT____SET____integer_ǀ >_______________________________________________________________________> ǀ_PARAMETER _____CCSID__ASII_________________ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ__VARCHAR__________NULTERM___ǀ ǀ_STRUCTURE___ǀ >__EXTERNAL____________________________LANGUAGE____ASSEMBLE____________> ǀ_NAME____’string’_____ǀ ǀ_C________ǀ ǀ_identifier_ǀ ǀ_COBOL____ǀ ǀ_JAVA_____ǀ ǀ_PLI______ǀ ǀ_REXX_____ǀ _PARAMETER STYLE SQL___________________________ >__ǀ_______________________________________________ǀ___________________> ǀ _PARAMETER STYLE_ ǀ ǀ__ǀ_________________ǀ__________________________ǀ ǀ_GENERAL____________ǀ ǀ_GENERAL WITH NULLS_ǀ ǀ_JAVA_______________ǀ _NOT DETERMINISTIC_ _FENCED_ >__ǀ___________________ǀ______ǀ________ǀ_______________________________> ǀ_DETERMINISTIC_____ǀ _CALLED ON NULL INPUT____ _MODIFIES SQL DATA_ >__ǀ_________________________ǀ__ǀ___________________ǀ___________________> ǀ_NO SQL____________ǀ ǀ_CONTAINS SQL______ǀ ǀ_READS SQL DATA____ǀ _NO PACKAGE PATH_____________ >__ǀ_____________________________ǀ______________________________________> ǀ_PACKAGE PATH package-path___ǀ _NO DBINFO_ _NO COLLID_____________ >__ǀ___________ǀ__ǀ_______________________ǀ_____________________________> ǀ_DBINFO____ǀ ǀ_COLLID__collection-id_ǀ >_______________________________________________________________________> ǀ_WLM ENVIRONMENT____name_____________ǀ ǀ_(__name__,*__)_ǀ _ASUTIME NO LIMIT________ _STAY RESIDENT NO__ >__ǀ_________________________ǀ__ǀ___________________ǀ___________________> ǀ_ASUTIME__LIMIT__integer_ǀ ǀ_STAY RESIDENT YES_ǀ _PROGRAM TYPE MAIN_ _SECURITY DB2__________ >__ǀ___________________ǀ_________ǀ_______________________ǀ______________> ǀ_PROGRAM TYPE SUB__ǀ ǀ_SECURITY USER_________ǀ ǀ_SECURITY DEFINER______ǀ _STOP AFTER SYSTEM DEFAULT FAILURES___ >_ǀ______________________________________ǀ______________________________> ǀ_STOP AFTER integer FAILURES__________ǀ ǀ_CONTINUE AFTER FAILURE_______________ǀ _COMMIT ON RETURN NO__ >_____________________________________ǀ______________________ǀ__________> ǀ_RUN OPTIONS__run-time-options_ǀ ǀ_COMMIT ON RETURN YES_ǀ _INHERIT SPECIAL REGISTERS_ _CALLED ON NULL INPUT_ >__ǀ___________________________ǀ____ǀ______________________ǀ____________> ǀ_DEFAULT SPECIAL REGISTERS_ǀ >_______________________________________________________________________>< ǀ_DISALLOW DEBUG MODE____ǀ ǀ_ALLOW DEBUG MODE_______ǀ ǀ_DISABLE DEBUG MODE_____ǀ external-java-routine-name ǀ__ ___________ __method-name___ __________________ __________________ǀ ǀ_jar-name:_ǀ ǀ_method-signature_ǀ jar-name ǀ__ ______________ __jar-id___________________________________________ǀ ǀ_schema-name._ǀ method-name <_________________________ ǀ___ _______________________ ǀ__class-id__ _.___ __method-id_________ǀ ǀ_package-id_ _._____ __ǀ ǀ_!___ǀ ǀ_/_____ǀ method-signature ǀ__ ___________________________ ____________________________________ǀ ǀ_(_ ___________________ _)_ǀ ǀ <_,___________ ǀ ǀ___java-datatypeǀ__ǀ
CREATE PROCEDURE (SQL – external)
>>__CREATE PROCEDURE__procedure-name______________________________________> <_ ,_______________________ >__(__________________________ǀ_)_option-list___SQL-routine-body__________>< ǀ_parameter-declaration_ǀ parameter-declaration: _IN_______ >___ǀ_OUT______ǀ______________________parameter-type______________________> ǀ_INOUT____ǀ ǀ_parameter-name_ǀ parameter-type: >>____built-in data-type_________________________________________________>< built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ option-list: _FENCED_ >>__LANGUAGE SQL__ǀ________ǀ_____________________________________________> ǀ_EXTERNAL NAME____’string’______________ǀ ǀ_identifier_ǀ _DYNAMIC RESULT SET 0_____________ >__ǀ__________________________________ǀ__________________________________> ǀ_DYNAMIC__RESULT____SET___integer_ǀ >________________________________________________________________________> ǀ_PARAMETER______CCSID__ASCII________________ǀ ǀ_EBCDIC__ǀ ǀ_UNICODE_ǀ >_PARAMETER__VARCHAR______NULTERM________________________________________> ǀ_STRUCTURE___ǀ _NOT DETERMINISTIC_ >__ǀ___________________ǀ_________________________________________________> ǀ_DETERMINISTIC_____ǀ _CALLED ON NULL INPUT____ _MODIFIES SQL DATA_ >__ǀ_________________________ǀ__ǀ___________________ǀ____________________> ǀ_NO SQL____________ǀ ǀ_CONTAINS SQL______ǀ ǀ_READS SQL DATA____ǀ _NODBINFO_ _NO COLLID______________ >__ǀ__________ǀ__ǀ________________________ǀ______________________________> ǀ_COLLID___collection-id_ǀ >________________________________________________________________________> ǀ_WLM ENVIRONMENT___name______________ǀ ǀ_(__name__,*__)_ǀ _ASUTIME NO LIMIT________ _STAY RESIDENT NO__ >__ǀ_________________________ǀ__ǀ___________________ǀ____________________> ǀ_ASUTIME__LIMIT__integer_ǀ ǀ_STAY RESIDENT YES_ǀ _PROGRAM TYPE MAIN_ _SECURITY DB2_________ >__ǀ___________________ǀ_________ǀ______________________ǀ________________> ǀ_PROGRAM TYPE SUB__ǀ ǀ_SECURITY USER________ǀ ǀ_SECURITY DEFINER_____ǀ _STOP AFTER SYSTEM DEFAULT FAILURES___ >_ǀ______________________________________ǀ_______________________________> ǀ_STOP AFTER integer FAILURES__________ǀ ǀ_CONTINUE AFTER FAILURE_______________ǀ _COMMIT ON RETURN NO__ >_____________________________________ǀ______________________ǀ___________> ǀ_RUN OPTIONS__run-time-options_ǀ ǀ_COMMIT ON RETURN YES_ǀ _INHERIT SPECIAL REGISTERS_ _CALLED ON NULL INPUT_ >__ǀ___________________________ǀ____ǀ______________________ǀ_____________> ǀ_DEFAULT SPECIAL REGISTERS_ǀ </_>
CREATE PROCEDURE (SQL native)
>>__CREATE PROCEDURE__procedure-name____________________________________> ǀ_(_________________________)_ǀ ǀ_____________________ ǀ ǀ_parameter decaration_ǀ _VERSION V1_____________ >_ǀ________________________ǀ___________________SQL-routine-body_________> _VERSION routine ver-id_ǀ ǀ_option-list_ǀ parameter-declaration: _IN____ >__ǀ_______ǀ__parameter-name__parameter-type_____________________________> ǀ_OUT___ǀ ǀ_INOUT_ǀ parameter-type: >>__built-in-data-type__________________________________________________>< ǀ_TABLE LIKE__table-name__AS LOCATOR_ǀ ǀ_view-name_ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_XML_______________________________________________________________________________________ǀ option-list: _NOT DETERMINISTIC_ _MODIFIES SQL DATA_ >>_ ǀ____________________ǀ__ ǀ___________________ǀ_____________________> ǀ_DETERMINISTIC______ǀ ǀ_READS SQL DATA____ǀ ǀ_CONTAINS SQL______ǀ _CALLED ON NULL INPUT_ _DYNAMIC RESULT SETS 0________ >__ǀ______________________ǀ___ǀ______________________________ǀ_________> ǀ_DYNAMIC RESULT SETS__integer_ǀ >______________________________________________________________________> ǀ_DISALLOW DEBUG MODE_ǀ ǀ_PARAMETER CCSID ASCII___ǀ ǀ_ALLOW DEBUG MODE____ǀ ǀ_PARAMETER CCSID EBCDIC__ǀ ǀ_DISABLE DEBUG MODE__ǀ ǀ_PARAMETER CCSID UNICODE_ǀ >______________________________________________________________________> ǀ_QUALIFIER__schema_name_ǀ >______________________________________________________________________> ǀ_PACKAGE OWNER__authorization_name_ǀ _ASUTIME NO LIMIT_______ _COMMIT ON RETURN NO__ >__ǀ________________________ǀ___ǀ______________________ǀ_______________> ǀ_ASUTIME LIMIT__integer_ǀ ǀ_COMMIT ON RETURN YES_ǀ ǀ_AUTONOMOUS___________ǀ _INHERIT SPECIAL REGISTERS_ >__ǀ___________________________ǀ_______________________________________> ǀ_DEFAULT SPECIAL REGISTERS_ǀ _STOP AFTER SYSTEM DEFAULT FAILURES_ >__ǀ____________________________________ǀ______________________________> ǀ_STOP AFTER__integer__FAILURES______ǀ ǀ_CONTINUE AFTER FAILURE_____________ǀ >______________________________________________________________________> ǀ_WLM ENVIRONMENT FOR DEBUG MODE__name_ǀ _CURRENT DATA NO__ _DEGREE 1___ >_______________________ ǀ__________________ǀ__ǀ____________ǀ_________> ǀ_DEFER PREPARE___ ǀ ǀ_CURRENT DATA YES_ǀ ǀ_DEGREE ANY_ǀ ǀ_NODEFER PREPARE_ ǀ >______CONCURRENT ACCESS RESOLUTION USE CURRENTLY COMMITTED___________> ǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME______ǀ _DYNAMICRULES RUN________ >__ǀ_________________________ǀ________________________________________> ǀ_DYNAMICRULES BIND_______ǀ ǀ_DYNAMICRULES DEFINEBIND_ǀ ǀ_DYNAMICRULES DEFINERUN__ǀ ǀ_DYNAMICRULES INVOKEBIND_ǀ ǀ_DYNAMICRULES INVOKERUN__ǀ >_____________________________________________________________________> ǀ_APPLICATION ENCODING SCHEME ASCII___ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ _WITHOUT EXPLAIN_ _WITHOUT IMMEDIATE WRITE_ >__ǀ_________________ǀ__ ǀ_________________________ǀ__________________> ǀ_WITH EXPLAIN____ǀ ǀ_WITH IMMEDIATE WRITE____ǀ _ISOLATION LEVEL CS_ _WITHOUT KEEP DYNAMIC_ >__ ǀ____________________ǀ__ǀ______________________ǀ___________________> ǀ_ISOLATION LEVEL RS_ǀ ǀ_WITH KEEP DYNAMIC____ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ _OPTHINT_____________________ >__ǀ_____________________________ǀ______________________________________> ǀ_OPHINT__string-constant_____ǀ >_______________________________________________________________________> ǀ_SQL PATH__schema_name__________ǀ ǀ_SQL PATH__schema_name_list_____ǀ ǀ_SQL PATH__SESSION_USER or USER_ǀ ǀ_SQL PATH__DEFAULT______________ǀ >__________________________________________________________________________> ǀ_QUERY ACCELERATION NONE_________________ǀ ǀ_GET_ACCEL_ARCHIVE NO___ǀ ǀ_QUERY ACCELERATION ENABLE_______________ǀ ǀ_GET_ACCEL_ARCHIVE YES__ǀ ǀ_QUERY ACCELERATION ENABLE WITH FAILBACK_ǀ ǀ_QUERY ACCELERATION ELIGIBLE_____________ǀ ǀ_QUERY ACCELERATION ALL__________________ǀ _RELEASE AT COMMIT_______ _REOPT NONE____ >__ǀ_________________________ǀ__ ǀ_______________ǀ________________________> ǀ_RELEASE AT DEALLOCATE___ǀ ǀ_REOPT ALWAYS__ǀ ǀ_REOPT ONCE____ǀ _VALIDATE RUN___ >____ǀ________________ǀ_______________________________________________> ǀ_VALIDATE BIND_ ǀ ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_ROUNDING DEC_ROUND_HALF_EVEN_ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________________________________________________________> ǀ_DATE FORMAT ISO___ ǀ ǀ_DECIMAL(15)___ ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_DECIMAL(31)___ ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_DECIMAL(15,s)_ ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_DECIMAL(31,s)_ ǀ ǀ_DATE FORMAT LOCAL_ ǀ _FOR UPDATE CLAUSE REQUIRED_ >____ǀ____________________________ǀ_________________________________________> ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_TIME FORMAT ISO___ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ >___________________________________________________________________________> ǀ _YES_ _YES__ ǀ ǀ_SYSTIMESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_BUSTIMESENSITIVE(_ǀ_NO__ǀ_)__ǀ >___________________________________________________________________________> ǀ _YES__ ǀ ǀ_ARCHIVESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_APPLCOMPAT(__compatibility-level_)_ǀ
CREATE ROLE
>>__CREATE ROLE__role-name_________________________________________________>
CREATE SEQUENCE
<_ ,_______________________________ >>_CREATE SEQUENCE_sequence-name_______________________________________ǀ_>< ǀ _INTEGER___ ǀ ǀ_AS__ǀ_data-type_ǀ_________________ǀ ǀ_START WITH__numeric-constant______ǀ ǀ _INCREMENT BY 1________________ ǀ ǀ_ǀ________________________________ǀǀ ǀ ǀ_INCREMENT BY__numeric-constant_ǀǀ ǀ _NO MINVALUE________________ ǀ ǀ_ǀ____________________________ǀ____ǀ ǀ ǀ_MINVALUE__numeric-constant_ǀ ǀ ǀ _NO MAXVALUE________________ ǀ ǀ_ǀ____________________________ǀ____ǀ ǀ ǀ_MAXVALUE__numeric-constant_ǀ ǀ ǀ _NO CYCLE_ ǀ ǀ_ǀ__________ǀ______________________ǀ ǀ ǀ_CYCLE____ǀ ǀ ǀ _CACHE 20________________ ǀ ǀ_ǀ_________________________ǀ_______ǀ ǀ ǀ_NO CACHE________________ǀ ǀ ǀ ǀ_CACHE__integer-constant_ǀ ǀ ǀ ǀ _NO ORDER_ ǀ ǀ_ǀ_ǀ__________ǀ____________________ǀ ǀ_ORDER____ǀ data-type: >>___built-in-type________________________________________________________> ǀ_distinct-type-name_ǀ built-in-type: >__SMALLINT_______________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT_ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ_ǀ ǀ_DEC_____ǀ ǀ_(__integer____________________)_ǀ ǀ_numeric_ǀ ǀ_,integer_ǀ
CREATE STOGROUP
<_ ,_______ >>__CREATE STOGROUP__stogroup-name__VOLUMES(_____volume-idǀ_________)_____> ǀ </_><_ ,___ ǀ ǀ_______’*’_ǀ________ǀ >__VCAT__catalog-name_____________________________________________________> >_________________________________________________________________________>< ǀ_DATACLASdc-name_ǀ ǀ_MGMTCLASmc-name_ǀ ǀ_STORCLASsc-name_ǀ
CREATE TABLE
>>__CREATE TABLE__table-name______________________________________________> <_ ,_________________________ >__(_____column-definition_______ǀ__)_____________________________________> ǀ ǀ_period-definition______ǀ ǀ ǀ ǀ_unique-constraint______ǀ ǀ ǀ ǀ_referential-constraint_ǀ ǀ ǀ ǀ_check-constraint_______ǀ ǀ ǀ__LIKE__table-name_____copy-options__________________________________ǀ ǀ ǀ ǀ_view-name__ǀ ǀ ǀ ǀ ǀ__as-result-table___ǀ_copy-options_________________________________ǀ ǀ__materialized-query-definition______________________________________ǀ <____________________________________________________>_______________________________________________________ǀ________________>< ǀ___IN______________________table-space-name___ǀ ǀ ǀ ǀ_database-name._ǀ ǀ ǀ ǀ ǀ_IN DATABASE__database-name_____________ǀ ǀ ǀ_partitioning-clause__________________________ǀ ǀ_organization-clause__________________________ǀ ǀ _WITH ROW ATTRIBUTES____ ǀ ǀ_EDITPROC_prg-name_ǀ________________________ǀ ǀ ǀ ǀ_WITHOUT ROW ATTRIBUTES_ǀ ǀ ǀ_VALIDPROC__program-name______________________ǀ ǀ _NONE____ ǀ ǀ_AUDIT__ǀ_CHANGES_ǀ___________________________ǀ ǀ ǀ_ALL_____ǀ ǀ ǀ_OBID__integer________________________________ǀ ǀ _NONE____ ǀ ǀ_DATA CAPTURE__ǀ_CHANGES_ǀ____________________ǀ ǀ_WITH RESTRICT ON DROP________________________ǀ ǀ_CCSID____ASCII_______________________________ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ _NOT VOLATILE_ _CARDINALITY_ ǀ ǀ__ǀ______________ǀ__ǀ_____________ǀ___________ǀ ǀ ǀ _CARDINALITY_ ǀ ǀ ǀ ǀ_VOLATILE______ǀ_____________ǀ_ǀ ǀ ǀ _LOGGED_____ ǀ ǀ__ǀ____________ǀ______________________________ǀ ǀ ǀ_NOT LOGGED_ǀ ǀ ǀ _COMPRESS NO__ ǀ ǀ__ǀ______________ǀ____________________________ǀ ǀ ǀ_COMPRESS YES_ǀ ǀ ǀ _NO__ ǀ ǀ_APPEND_____ǀ_YES_ǀ___________________________ǀ ǀ_DSSIZE_integer_G_____________________________ǀ ǀ_BUFFERPOOL_bpname____________________________ǀ ǀ_MEMBER CLUSTER_______________________________ǀ ǀ _TRACKMOD YES_____ ǀ ǀ__ǀ__________________ǀ________________________ǀ ǀ ǀ_TRACKMOD NO______ǀ ǀ ǀ______________________________________________ǀ ǀ_PAGENUM RELATIVE_ǀ ǀ_PAGENUM ABSOLUTE_ǀ column-definition: <___________________________________________________________ >>__column-name__data-type_________________________________________ǀ__> >_____________________________________________________________________>> ǀ_NOT NULL________________________________________________________ǀ ǀ_____________________________________PRIMARY KEY_________________ǀ ǀ ǀ_CONSTRAINT__constraint-name_ǀ ǀ ǀ_UNIQUE______ǀ ǀ ǀ ǀ ǀ_references-clause__________ǀ ǀ ǀ ǀ_CHECK(check-condition)_____ǀ ǀ ǀ _WITH_ ǀ ǀ_ǀ______ǀ__DEFAULT_______________________________________________ǀ ǀ ǀ_constant____________________________ǀ ǀ ǀ ǀ_SESSION USER________________________ǀ ǀ ǀ ǀ ǀ_USER__________ǀ ǀ ǀ ǀ_CURRENT SQLID_______________________ǀ ǀ ǀ ǀ_NULL________________________________ǀ ǀ ǀ ǀ_cast-function-name_(constant_)_____ǀ ǀ ǀ ǀ_SESSION USER__ǀ ǀ ǀ ǀ ǀ_USER___ǀ ǀ ǀ ǀ ǀ_CURRENT SQLID_ǀ ǀ ǀ ǀ_NULL__________ǀ ǀ ǀ_GENERATED_______ALWAYS__________________________________________ǀ ǀǀ ǀ_BY DEFAULT_ǀ ǀ_as-identity-clause_____________ǀ ǀ ǀ ǀ ǀ_as-row-change-timestamp-clause_ǀ ǀ ǀ ǀǀ_GENERATED___ALWAYS___________________________________________ǀ ǀ ǀ ǀ_as-row-transaction-timestamp-clause_ǀ ǀ ǀ ǀ_as-row-transaction-start-id-clause__ǀ ǀ ǀ ǀ_as-generated-expression-clause______ǀ ǀ ǀ_references-clause_______________________________________________ǀ ǀ_column-constraint_______________________________________________ǀ ǀ_FIELDPROC__program-name_________________________________________ǀ ǀ ǀ <_ ,________ ǀ ǀ ǀ ǀ_(___constant_ǀ_)_ǀ ǀ ǀ_AS SECURITY LABEL_______________________________________________ǀ ǀ_IMPLICITY HIDDEN________________________________________________ǀ ǀ_INLINE LENGTH___________________________________________________ǀ data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ ǀ_XML__( XML-type-modifier_)________________________________________________________________ǀ XML-type-modifier: >>__XMLSCHEMA XML-schema-specification_____________________________________> ǀ_ELEMENT_element-name__ǀ XML-schema-specification: >>__ID registered-XML-schema-name__________________________________________> ǀ_URL target-namespace___________________________________ǀ ǀ_NO NAMESPACE_________ǀ ǀ_LOCATION_schema-location_ǀ as-identity clause: >>__AS IDENTITY___________________________________________________________>< ǀ <_,_______________________________________ ǀ ǀ _1________________ ǀ ǀ ǀ_(______START WITH_ǀ_numeric-constant_ǀ_______ǀ__)_ǀ ǀ _1________________ ǀ ǀ_INCREMENT BY_ǀ_numeric-constant_ǀ___ǀ ǀ _CACHE 20_______ ǀ ǀ_ǀ_NO CACHE_______ǀ__________________ǀ ǀ ǀ_CACHE__integer_ǀ ǀ ǀ _NO CYCLE_ ǀ ǀ_ǀ_CYCLE____ǀ________________________ǀ ǀ _NO MAXVALUE________________ ǀ ǀ_ǀ_MAXVALUE__numeric-constant_ǀ______ǀ ǀ _NO MINVALUE_________________ ǀ ǀ_ǀ_MINVALUE__numeric-constant__ǀ_____ǀ ǀ _NO ORDER_ ǀ ǀ_ǀ__________ǀ________________________ǀ ǀ_ORDER____ǀ as-row-change-timestamp-clause: >>__FOR EACH ROW__ON UPDATE__AS ROW CHANGE__TIMESTAMP_____________________>< as-row-transaction-timestamp-clause: >>__AS ROW__BEGIN_________________________________________________________>< ǀ_END_ǀ as-row-transaction-id-clause: >>__AS TRANSACTION START ID_______________________________________________>< as-generated-expression-clause: >>__AS (_non-deterministic-expression_)___________________________________>< non-deterministic-expression: >>__DATA CHANGE OPERATION_________________________________________________>< ǀ_special-register______ǀ ǀ_session-variable______ǀ special register: >>__CURRENT CLIENT_ACCTNG_________________________________________________>< ǀ_CURRENT CLIENT_APPLNAME_________ǀ ǀ_CURRENT CLIENT_CORR_TOKEN_______ǀ ǀ_CURRENT CLIENT_USERID___________ǀ ǀ_CURRENT CLIENT_WRKSTNNAME_______ǀ ǀ_CURRENT SERVER__________________ǀ ǀ_CURRENT SQLID___________________ǀ ǀ_SESSION_USER____________________ǀ session-variable: >>__SYSTEM.PACKAGE_NAME____________________________________________________>< ǀ_SYSTEM.PACKAGE_SCHEMA___________ǀ ǀ_SYSTEM.PACKAGE_VERSION__________ǀ column-constraint: >>________________________________________PRIMARY KEY_____________________>< ǀ_CONSTRAINT_constraint-name_ǀǀ ǀ_UNIQUE________ǀ ǀ ǀ_references clause_______________ǀ ǀ_CHECK(_check-condition_)________ǀ period-definition: _FOR_ >>__PERIOD__ǀ_____ǀ______________________________________________________><>_SYSTEM_TIME______(_begin-column-name, end-column-name_)________________>< ǀ_BUSINESS_TIME__(_begin-column-name, end-column-name_)_EXCLUSIVE____ǀ ǀ_INCLUSIVE___ǀ unique-constraint: <_,___________ >>________________________________PRIMARY KEY__(___column-name_ǀ__________>< ǀ_CONSTRAINT__constraint-name ǀ_UNIQUE___ǀ >_____________________________________________)___________________________>< ǀ__,_BUSINESS_TIME WITHOUT OVERLAPS_____ǀ referential-constraint: <_,____________________ >>______________________________FOREIGN KEY_(_column-name______________ǀ)>< ǀ_CONSTRAINT_constraint-name_ǀ ǀ_PERIOD_BUSINESS_TIME_ǀ >__references-clause_____________________________________________________>< references-clause: >>__REFERENCES__table-name_______________________________________________> ǀ </_><_ ,___________ ǀ ǀ_(____column-name_ǀ_)_ǀ >________________________________________________________________________>< ǀ_ON DELETE____RESTRICT______ǀ ǀ_NO ACTION_ǀ ǀ_CASCADE___ǀ ǀ_SET NULL__ǀ _ENFORCED______ _ENABLE QUERY OPTIMIZATION_ >_____ǀ_______________ǀ_ǀ___________________________ǀ____________________>< ǀ_NOT ENFORCED__ǀ check-constraint: >>___________________________________CHECK__(check-condition)____________>< ǀ_CONSTRAINT__constraint-name_ǀ as-result-table: >>__________________________AS_(fullselect)_WITH NO DATA_________________>< ǀ <__,_________ ǀ ǀ_(column-name_ǀ_)_ǀ copy-options: <___________________________________________________________ _COLUMN ATTRIBUTES_ ǀ _EXCLUDING IDENTITY__ǀ___________________ǀ_ ǀ >>____ǀ___________________________________________ǀ______________ǀ_____> ǀǀ _COLUMN ATTRIBUTES_ ǀ ǀ ǀǀ_INCLUDING IDENTITY__ǀ___________________ǀ_ǀ ǀ ǀ _COLUMN ATTRIBUTES_ ǀ ǀ _EXCLUDING ROW CHANGE TIMESTAMP_ǀ__________________ǀ_ ǀ ǀ_ǀ_____________________________________________________ǀ ǀ ǀ ǀ _COLUMN ATTRIBUTES_ ǀ ǀ ǀ ǀ_INCLUDING ROW CHANGE TIMESTAMP_ǀ____________________ǀ ǀ ǀ _COLUMN_ ǀ ǀ _EXCLUDING__ǀ________ǀ__DEFAULTS_ ǀ ǀ___ǀ_________________________________ǀ___________________ǀ ǀ ǀ _COLUMN_ ǀ ǀ ǀ ǀ_INCLUDING__ǀ________ǀ__DEFAULTS_ǀ ǀ ǀ ǀ_USING TYPE DEFAULTS_____________ǀ ǀ ǀ_EXCLUDING XML TYPE MODIFIERS__________________________ǀ partitioning-clause: _RANGE_ </_><_ ,__________________ >>__PARTITION BY__ǀ_______ǀ__(_partition-expression_ǀ_)_________________> ǀ_SIZE______________________________________________ǀ ǀ__EVERY_ integer-constant_G_ǀ </_><_ ,__________________ >__(_partition-element_____ǀ__)___________________________________________>< partition-expression: _NULLS LAST_ _ASC__ >>__column-name__ǀ____________ǀ__ǀ______ǀ_________________________________>< ǀ_DESC_ǀ partition-element: _AT_ >>__PARTITION__integer__ENDING__ǀ____ǀ__(___constant_ǀ_)__________________> ǀ_MAXVALUE_ǀ ǀ_MINVALUE_ǀ _INCLUSIVE_ >__HASH SPACE__integer____K_______________________________ǀ__________ǀ____>< ǀ_M_ǀ ǀ_G_ǀ organization-clause: <_______________ _HASH SPACE_64M___________ >>_UNIQUE__(_column-name_)_ǀ___ǀ__________________________ǀ_______________> ǀ_HASH SPACE_integer__K____ǀ ǀ_M_ǀ ǀ_G_ǀ materialized-query-definition: >>__ _______________________ __AS__(fullselect)___________________________> ǀ </_><_ ,___________ ǀ ǀ_(____column-name_ǀ__)_ǀ >__ ______________________________________________________________________>< ǀ_ refreshable-table-options_____ǀ refreshable-table-options: >>__DATA INITIALLY DEFERRED__REFRESH DEFERRED_____________________________> <_________________________________>___ ________________________________ǀ_________________________________>< ǀ _MAINTAINED BY SYSTEM_ ǀ ǀ_ǀ______________________ǀ_______ǀ ǀ ǀ_MAINTAINED BY USER___ǀ ǀ ǀ _ENABLE QUERY OPTIMIZATION__ǀ ǀ ǀ_ǀ____________________________ǀ_ǀ ǀ_DISABLE QUERY OPTIMIZATION_
CREATE TABLESPACE
>>__CREATE______TABLESPACE__table-space-name_____________________________> ǀ_LOB_ǀ ǀ _DSNDB04_______ ǀ ǀ_IN_ǀ_database-name_ǀ_ǀ <_________________>_____________________ǀ__________________________________________________> ǀ_using-block_____ǀ ǀ_DSSIZE__integer__G_ǀ ǀ_free-block______ǀ ǀ_gbpcache-block__ǀ ǀ_trackmod-block__ǀ ǀ _YES_ ǀ ǀ_DEFINE__ǀ_NO__ǀ_ǀ ǀ _LOGGED_____ ǀ ǀ_ǀ____________ǀ__ǀ ǀ_NOT LOGGED_ǀ <_____________________________>_______________________________________________________________________ǀ__>< ǀ_partition-by-growth-specifications_ǀ ǀ_BUFFERPOOL__bpname_______ǀ ǀ_partition-by-range-specifications__ǀ ǀ _ANY________ ǀ ǀ_SEGSIZE integer____________________ǀ ǀ_LOCKSIZE__ǀ_TABLESPACE_ǀ_ǀ ǀ ǀ_TABLE______ǀ ǀ ǀ ǀ_PAGE_______ǀ ǀ ǀ ǀ_ROW________ǀ ǀ ǀ ǀ_LOB________ǀ ǀ ǀ_LOCKMAX____SYSTEM________ǀ ǀ ǀ_integer_ǀ ǀ ǀ _YES_ ǀ ǀ_CLOSE__ǀ_NO__ǀ___________ǀ ǀ _NO__ ǀ ǀ_COMPRESS__ǀ_YES_ǀ________ǀ ǀ_CCSID____ASCII___________ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ_MAXROWS__integer_________ǀ ǀ_SEGSIZE_integer__________ǀ ǀ__________________________ǀ ǀ_PAGENUM RELATIVE_ǀ ǀ_PAGENUM ABSOLUTE_ǀ using-block: >>__USING___________________________________________________________________> >____VCAT__catalog-name____________________________________________________>< ǀ <_____________________ ǀ ǀ_STOGROUP__stogroup-name_________________________ǀ_____ǀ ǀ_PRIQTY__integer_ǀ ǀ_SECQTY__integer_ǀ ǀ _NO__ ǀ ǀ_ERASE__ǀ_YES_ǀ__ǀ free-block: <____________________________ _0_______ >>_______FREEPAGE__ǀ_integer_ǀ____ǀ_________________________________________>< ǀ _5_______ ǀ ǀ_PCTFREE__ǀ_integer_ǀ__ǀ gbpcache-block: _CHANGED_ >>__GBPCACHE__ǀ_ALL_____ǀ__________________________________________________>< ǀ_SYSTEM__ǀ ǀ_NONE____ǀ trackmod-block: _YES_ >>__TRACKMOD__ǀ_NO__ǀ______________________________________________________>< partition-by-growth-specification: <____________________________ >_MAXPARTITIONS_integer____________________________________ǀ_______________>< ǀ_MEMBER CLUSTER________________ǀ ǀ_NUMPARTS integer______________ǀ ǀ _ALLOW MULTIPLE TABLES NO_ ǀ ǀ_ǀ___________________________ǀ ǀ ǀ___________________________ǀ ǀ_ALLOW MUTLIPLE TABLES YES_ǀ partition-by-range-specification: <_____________________________________________________________ >_________________________________________________________________________ǀ> ǀ <________________ ǀ ǀ_NUMPARTS__integer__________________________ǀ________________________ǀ ǀ ǀ <_,________________________________ ǀǀ_MEMBER CLUSTER_ǀǀ ǀ ǀ <__________________ ǀ ǀ ǀ ǀ ǀ(_PARTITION_integer _using-block_ ǀ__ǀ_)_ǀ ǀ ǀ ǀ_free-block________ǀ ǀ ǀ ǀ_gbpcache-block____ǀ ǀ ǀ ǀ_trackmod-block____ǀ ǀ ǀ ǀ _NO__ ǀ ǀ ǀ ǀ_COMPRESS__ǀ_YES_ǀ_ǀ ǀ ǀ ǀ_DSSIZE_integer_G__ǀ ǀ ǀ_MEMBER CLUSTER______________________________________________________ǀ
CREATE TRIGGER (advanced)
_VERSION V1_________________ >>_CREATE______________TRIGGER_trigger-name_ǀ____________________________ǀ_> ǀ_OR REPLACE_ǀ ǀ_VERSION trigger-version-id_ǀ >_NO CASCADE BEFORE________________________________________________________> ǀ_AFTER_____________ǀ ǀ_INSTEAD OF________ǀ >____INSERT_____________________________ON___table-name____________________> ǀ_DELETE__________________________ǀ ǀ_view-name_ǀ ǀ_UPDATE__________________________ǀ ǀ <_ ,___________ ǀ ǀ_OF___column-name_ǀ___ǀ >__________________________________________________________________________> ǀ <______________________________________ ǀ ǀ _AS_ ǀ ǀ ǀ_REFERENCING______OLD__ǀ____ǀ__correlation-name______ǀ_____ǀ ǀ _AS_ ǀ ǀ_NEW__ǀ____ǀ__correlation-name____ǀ ǀ _AS_ ǀ ǀ_OLD TABLE_____ǀ____ǀ__identifier_ǀ ǀ _AS_ ǀ ǀ_NEW TABLE_____ǀ____ǀ__identifier_ǀ >_____FOR EACH ROW_________MODE DB2SQL__NOT SECURED__triggered-action_____>< ǀ_FOR EACH STATEMENT_ǀ ǀ_SECURED____ǀ triggered-action: >>_______________________________________SQL trigger body_________________> ǀ_WHEN__(__search-condition__)_ǀ SQL-trigger-body: >_____SQL-control-statement_______________________________________________>< ǀ_trigger-SQL-statement__ǀ option-list: >__DISALLOW DEBUG MODE_____APPLICATION ENCODING SCHEME ASCII______________> ǀ_ALLOW DEBUG MODE___ǀ ǀ_APPLICATION ENCODING SCHEME EBCDIC__ǀ ǀ_DISABLE DEBUG MODE_ǀ ǀ_APPLICATION ENCODING SCHEME UNICODE_ǀ >_QUALIFIER schema-name__ ASUTIME_NO LIMIT_________________________________> ǀ_ASUTIME LIMIT_int_ǀ >__________________________________________________________________________> ǀ_WLM ENVIRONMENT FOR DEBUG MODE name__ǀ >__CURRENT DATA NO_____CONCURRENT ACCESS RESOLUTION USE CURRENTLY COMMITTED_> ǀ_CURRENT DATA YES_ǀǀ_CONCURRENT ACCESS RESOLUTION WAIT FOR OUTCOME______ǀ >____DYNAMICRULES RUN_______________WITHOUT IMMEDIATE WRITE_________________> ǀ_DYNAMICRULES BIND_______ǀ ǀ_WITH IMMEDIATE WRITE___ǀ >__WITHOUT EXPLAIN____ISOLATION LEVEL CS_________OPHINT__’ ‘________________> ǀ_WITH EXPLAIN___ǀǀ_ISOLATION LEVEL RS_ǀ ǀ_OPHINT_string-constant_ǀ ǀ_ISOLATION LEVEL RR_ǀ ǀ_ISOLATION LEVEL UR_ǀ <_ ,______ >_SQL PATH__schema-nameǀ______RELEASE AT COMMIT_____________________________> ǀ_SCHEMA PATH__ǀ ǀ_RELEASE AT DEALLOCATE_ǀ ǀ_SESSION USER_ǀ ǀ_USER_ǀ >___________________________________________________________________________> ǀ_ROUNDING DEC_ROUND_CEILING___ǀ ǀ_DATE FORMAT ISO___ ǀ ǀ_ROUNDING DEC_ROUND_DOWN______ǀ ǀ_DATE FORMAT EUR___ ǀ ǀ_ROUNDING DEC_ROUND_FLOOR_____ǀ ǀ_DATE FORMAT USA___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_DOWN_ǀ ǀ_DATE FORMAT JIS___ ǀ ǀ_ROUNDING DEC_ROUND_HALF_EVEN_ǀ ǀ_DATE FORMAT LOCAL_ ǀ ǀ_ROUNDING DEC_ROUND_HALF_UP___ǀ ǀ_ROUNDING DEC_ROUND_UP________ǀ >__________________________FOR UPDATE CLAUSE REQUIRED_______________________> ǀ_DECIMAL(15)___ ǀ ǀ_FOR UPDATE CLAUSE OPTIONAL_ǀ ǀ_DECIMAL(31)___ ǀ ǀ_DECIMAL(15,s)_ ǀ ǀ_DECIMAL(31,s)_ ǀ >___________________________________________________________________________> ǀ_TIME FORMAT ISO___ǀ ǀ_NOT SECURED_ǀ ǀ_TIME FORMAT EUR___ǀ ǀ_SECURED_____ǀ ǀ_TIME FORMAT USA___ǀ ǀ_TIME FORMAT JIS___ǀ ǀ_TIME FORMAT LOCAL_ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ _YES_ ǀ ǀ_SYSTIMESENSITIVE(_ǀ_NO__ǀ_)_ǀ ǀ_BUSTIMESENSITIVE(_ǀ_NO__ǀ_)__ǀ >___________________________________________________________________________> ǀ _YES_ ǀ ǀ ǀ ǀ_ARCHIVESENSITIVE(_ǀ_NO__ǀ_)__ǀ ǀ_APPLCOMPAT(__V12R1__)_ǀ >__________________________________________________________________________>< ǀ_CONCENTRATE STATEMENTS OFF___________ǀ ǀ_CONCENTRATE STATEMENTS WITH LITERALS_ǀ
CREATE TRIGGER(basic)
>>__CREATE TRIGGER__ trigger-name_____NO CASCADE BEFORE____________________> ǀ_AFTER______________ǀ ǀ_INSTEAD OF_________ǀ >______INSERT______________________________ON__table-name__________________> ǀ_DELETE___________________________ǀ ǀ_UPDATE___________________________ǀ ǀ <_ ,___________ ǀ ǀ_OF___column-name_ǀ__ǀ >__________________________________________________________________________> ǀ <______________________________________ ǀ ǀ _AS_ ǀ ǀ ǀ_REFERENCING_______OLD__ǀ____ǀ__correlation-name______ǀ______ǀ ǀ _AS_ ǀ ǀ_NEW__ǀ____ǀ__correlation-name____ǀ ǀ _AS_ ǀ ǀ_OLD TABLE_____ǀ____ǀ__identifier_ǀ ǀ _AS_ ǀ ǀ_NEW TABLE_____ǀ____ǀ__identifier_ǀ >_____FOR EACH ROW__________MODE DB2SQL__NOT SECURED__triggered-action____>< ǀ_FOR EACH STATEMENT_ǀ ǀ_SECURED____ǀ triggered-action: >>________________________________________SQL trigger body_________________> ǀ_WHEN__(__search-condition__)_ǀ <____________________________>__BEGIN ATOMIC____triggered-SQL-statement__;_ǀ__END_______________________><
CREATE TRUSTED CONTEXT
>>__CREATED TRUSTED CONTEXT__context-name__________________________________> >_BASED UPON CONNECTION USING SYSTEM AUTHID_authorization-name_____________> _NO DEFAULT ROLE________________________________________ _DISABLE_ >_ǀ________________________________________________________ǀ__ǀ________ǀ___> ǀ _WITHOUT ROLE AS OBJECT OWNER_ ǀ ǀ_ENABLE_ǀ ǀ_DEFAULT ROLE_role-name_ǀ_____________________________ǀ_ǀ ǀ_WITH ROLE AS OBJECT OWNER___ǀ _NO DEFAULT SECURITY LABEL_________________ >_ǀ___________________________________________ǀ____________________________> ǀ_DEFAULT SECURITY LABEL seclabel-name______ǀ <_ ,____________________________ >_ATTRIBUTES__(_____ADDRESS__address-value________ǀ________________________> ǀ ǀ_ENCRYPTION_encryption-value__ǀ ǀ ǀ ǀ_SERVAUTH_servauth-value______ǀ ǀ ǀ </_><_ ,__________________________ ǀ ǀ_____JOBNAME_jobname-value___ǀ________ǀ >_________________________________________________________________________> ǀ </_><_ ,_______________________________________ ǀ ǀ_WITH USE FOR_____authorization-name______________________ǀ_________ǀ_> ǀ ǀ_user-options__ǀ ǀ ǀ_EXTERNAL SECURITY PROFILE_profile-name_______________ǀ ǀ _WITHOUT AUTHENTICATION_ ǀ_user-options_ǀǀ ǀ_PUBLIC____ǀ________________________ǀ_________________ǀ ǀ_WITH AUTHENTICATION____ǀ user-options: _WITHOUT AUTHENTICATION_ >>________________________________________________ǀ_______________________ǀ_> ǀ_ROLE_role-name_ǀǀ_SECURITY LABEL_seclabel-name_ǀǀ_WITH AUTHENTICATION_ǀ </_>
CREATE TYPE (array)
_2147483647_ >>__CREATE TYPE_array-type-name_AS_built-in-type_ARRAY_ǀ_____________ǀ______> ǀ_integer_____ǀ ǀ_data-type2__ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME______ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ data-type2: >______INTEGER__________________________________________________________> ǀ ǀ_INT___ǀ__________________________ǀ ǀ ǀ_VARCHAR____________(integer)______________________________________ǀ ǀ_CHARACTER_VARYING_ǀ ǀ_CCSID_ASCII____ǀǀ_FOR_SBCS_____DATA_ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ_UNICODE_ǀ ǀ_BIT___ǀ
CREATE TYPE(distinct)
>>__CREATE TYPE_distinct-type-name_AS_source-data-type___________________> >________________________________________________________________________> ǀ_INLINE LENGTH_integer_ǀ source-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ
CREATE VARIABLE
>>__CREATE VARIABLE_variable-name_ǀ data-type ǀ_________________________> _DEFAULT NULL______________ >___ ǀ___________________________ǀ_________ǀ built-in type ǀ____________> ǀ_DEFAULT__constant_________ǀ ǀ_array-type-name_ǀ ǀ_special register_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME______ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ
CREATE VIEW
>>__CREATE VIEW__view-name_________________________________________________> ǀ <_ ,___________ ǀ ǀ_(____column-name_ǀ_)_ǀ >______________________________________________AS__fullselect__________> ǀ <__ ,____________________ ǀ ǀ_WITH common-table-expression_ǀ__ǀ >______________________________________________________________________>< ǀ _CASCADED_ ǀ ǀ_WITH__ǀ__________ǀ__CHECK OPTION_ǀ ǀ_LOCAL____ǀ
DECLARE CURSOR
_NO SCROLL__________________________ >>__DECLARE__cursor-name__ǀ____________________________________ǀ_________> ǀ _ASENSITIVE_____________ ǀ ǀ__ǀ________________________ǀ_SCROLL_ǀ ǀ_INSENSITIVE____________ǀ ǀ _DYNAMIC_ ǀ ǀ_SENSITIVE_ǀ_________ǀ__ǀ ǀ_STATIC__ǀ <________________________>__CURSOR____ ____________________ _ǀ____________________________________> ǀ_holdability________ǀ ǀ_returnability______ǀ ǀ_rowset-positioning_ǀ >__FOR__ _select-statement_ _____________________________________________>< ǀ_statement-name___ǀ holdability: _WITHOUT HOLD_ >>__ǀ______________ǀ______________________________________________________>< ǀ_WITH HOLD____ǀ returnability: _WITHOUT RETURN________________ >>__ǀ_______________________________ǀ_____________________________________>< ǀ _TO CALLER_ ǀ ǀ_WITH RETURN__ǀ___________ǀ____ǀ ǀ_TO CLIENT_ǀ rowset-positioning: _WITHOUT ROWSET POSITIONING_ >>__ǀ____________________________ǀ________________________________________>< ǀ_WITH ROWSET POSITIONING____ǀ
DECLARE GLOBAL TEMPORARY TABLE
>>__DECLARE GLOBAL TEMPORARY TABLE__table-name____________________________> <_ ,____________ >_(_____column-spec___ǀ_)_________________________________________________> ǀ_LIKE___table-name____ǀ_____________________________ǀ ǀ ǀ_view-name__ǀ ǀ ǀ_copy-options_ǀ ǀ_as-result-table__________ǀ <_____________________________________________>________________________________________________ǀ________________________>< ǀ_CCSID___ASCII_______________________________ǀ ǀ ǀ_EBCDIC__ǀ ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ _DELETE ROWS___ ǀ ǀ_ON COMMIT_ǀ_PRESERVE_ROWS_ǀ_________________ǀ ǀ ǀ_DROP_TABLE____ǀ ǀ ǀ ǀ ǀ __LOGGED_________________________________ ǀ ǀ_ǀ_________________________________________ǀ_ǀ ǀ _ON ROLLBACK DELETE ROWS_ ǀ ǀ_NOT LOGGED__ǀ_________________________ǀ__ǀ ǀ_ON ROLLBACK PRESERVE ROWS-_ǀ column-spec: >>__column-name__data-type________________________________________________> <_____________________________________________________>________________________________________________________ǀ_______________>< ǀ_NOT NULL_________________________________________ǀ ǀ _WITH_ ǀ ǀ__ǀ______ǀ_DEFAULT________________________________ǀ ǀ ǀ_CONSTANT______ǀ ǀ ǀ ǀ_SESSION_USER__ǀ ǀ ǀ ǀǀ_USER_______ǀ ǀ ǀ ǀ ǀ_CURRENT SQLID_ǀ ǀ ǀ ǀ_NULL__________ǀ ǀ ǀ_GENERATED___ALWAYS_______________________________ǀ ǀ ǀ_BY DEFAULT_ǀ ǀ_as-identity-clause_ǀ ǀ ǀ_NOT NULL_________________________________________ǀ data-type: >>___built-in type_________________________________________________________>< ǀ_distinct-type-name_ǀ >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ_BIT___ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ_CCSID 1208___________ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ___CCSID 1200_ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME______ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ as-result-table: >>____AS__(fullselect)__WITH NO DATA_______________________________________>< copy-options: _COLUMN ATTRIBUTES_ _EXCLUDING IDENTITY__ǀ___________________ǀ_ >>__ǀ___________________________________________ǀ__________________________> ǀ _COLUMN ATTRIBUTES_ ǀ ǀ_INCLUDING IDENTITY__ǀ___________________ǀ_ǀ _COLUMN_ _EXCLUDING_ǀ________ǀ_DEFAULTS_ >__ǀ_______________________________ǀ_______________________________________> ǀ _COLUMN_ ǀ ǀ_INCLUDING_ǀ________ǀ_DEFAULTS_ǀ ǀ_USINGTYPEDEFAULTS_____________ǀ as-identitiy-clause: >>__AS IDENTITY________________________________________________________>< ǀ _<_,_______________________________________ ǀ ǀ _1________________ ǀ ǀ ǀ_(_____START WITH_ǀ_numeric-constant_ǀ_______ǀ__)_ǀ ǀ _1_________________ ǀ ǀ_INCREMENT BY_ǀ_numeric-constant_ǀ__ǀ ǀ _CACHE 20_______ ǀ ǀ_ǀ_NO CACHE_______ǀ_________________ǀ ǀ ǀ_CACHE__integer_ǀ ǀ ǀ _NO CYCLE_ ǀ ǀ_ǀ_CYCLE____ǀ_______________________ǀ ǀ _NO MAXVALUE________________ ǀ ǀ_ǀ_MAXVALUE__numeric-constant_ǀ_____ǀ ǀ _NO MINVALUE_________________ ǀ ǀ_ǀ_MINVALUE__numeric-constant__ǀ____ǀ ǀ _NO ORDER_ ǀ ǀ_ǀ__________ǀ_______________________ǀ ǀ_ORDER____ǀ
DECLARE STATEMENT
<_ ,______________ >>__DECLARE____statement-name_ǀ__STATEMENT_____________________________><
DECLARE TABLE
>>_DECLARE__table-name__________________________________________________> ǀ_view-name__ǀ <_ ,______________________________________________ >_TABLE(column-name__built-in-data-type_____________________________ǀ_)_>< ǀ_distinct-type-name_ǀǀ_NOT NULL______________ǀ ǀ_NOT NULL WITH DEFAULT_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(length__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_length__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ
DECLARE VARIABLE
_CCSID EBCDIC__ >>_DECLARE__host-variableǀ_VARIABLE_ǀ_______________ǀ_____________________>< ǀǀ_CCSID ASCII___ǀ ǀ_FOR SCBS DATA__ǀǀ ǀǀ_CCSID UNICODE_ǀ ǀ_FOR MIXED DATA_ǀǀ ǀ ǀ_FOR BIT DATA___ǀǀ ǀ_CCSID__integer______________________ǀ
DELETE
searched delete: >>__DELETE FROM__table-name_____________________________________________> ǀ_view-name__ǀ ǀ_period-clause_ǀ ǀ_correlation-clause_ǀ >_______________________________________________________________________> ǀ_include-column_ǀ ǀ_SET assignment-clause_ǀ >_______________________________________________________________________> ǀ_WHERE__search-condition_ǀ ǀ_isolation-clause__ǀ ǀ_SKIP LOCKED DATA__ǀ >_______________________________________________________________________>< ǀ_QUERYNO__integer_ǀ positioned delete: >>__DELETE FROM____table-name____WHERE CURRENT OF__cursor-name_________>< ǀ_view-name__ǀ >______________________________________________________________________>< ǀ_FOR ROW___host-variable______OF ROWSET_ǀ ǀ_integer-constant__ǀ period-clause: >>__FOR PORTION OF BUSINESS_TIME_FROM_value1 TO value2_________________>< ǀ_BETWEEN value1 AND value2_ǀ include-column: >>__INCLUDE__(__column-name__data-type__)______________________________>< data-type: >>___built-in type_____________________________________________________>< ǀ_distinct_type_name_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_FOR___BIT____DATA_ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME_____________________________________________ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ assignment-clause: <__,_____________________________________________________ >>_____column-name___expression_______________________________ǀ_____________>< ǀ ǀ_NULL__________ǀ ǀ ǀ <_,___________ <_,___________________ ǀ ǀ_(_column-name___ǀ_)_(_________expression____ǀ_____)__ǀ ǀ ǀ_NULL_________ǀ ǀ ǀ_row-fullselect_________ǀ isolation-clause: >>_WITH___RR________________________________________________________________>< ǀ_RS_ǀ ǀ_CS_ǀ
DESCRIBE CURSOR
>>__DESCRIBE CURSOR____cursor-name______INTO__descriptor-name_______________>< ǀ_host-variable_ǀ
DESCRIBE INPUT
>>__DESCRIBE INPUT____statement-name____INTO__descriptor-name_______________><
DESCRIBE OUTPUT
_OUTPUT_ >>_DESCRIBE_ǀ________ǀ_statement-name____INTO__descriptor-name______________> >___________________________________________________________________________>< ǀ _NAMES__ ǀ ǀ_USING__ǀ_LABELS_ǀ_ǀ ǀ_ANY____ǀ ǀ_BOTH___ǀ
DESCRIBE PROCEDURE
>>__DESCRIBE PROCEDURE____procedure-name____INTO__descriptor-name___________>< ǀ_host-variable__ǀ
DESCRIBE TABLE
>>_DESCRIBE TABLE___host-variable_________INTO__descriptor-name_____________> >___________________________________________________________________________>< ǀ _NAMES__ ǀ ǀ_USING__ǀ_LABELS_ǀ_ǀ ǀ_ANY____ǀ ǀ_BOTH___ǀ
DROP
_FOR TABLE____ >>_DROP________________ALIAS__alias-name__ǀ______________ǀ_________________>< ǀ ǀ_PUBLIC_ǀ ǀ_FOR SEQUENCE_ǀ ǀ ǀ_DATABASE__database-name__________________________________________ǀ ǀ_TYPE______________distinct-type-name__RESTRICT___________________ǀ ǀ__FUNCTION__function-name_______________________________RESTRICT__ǀ ǀ ǀ ǀ <_,___________________ ǀ ǀ ǀ ǀ ǀ ǀ_(________________________ǀ__)_ǀ ǀ ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ ǀ ǀ__SPECIFIC FUNCTION specific-name______RESTRICT_______________ǀ ǀ ǀ_INDEX__index-name________________________________________________ǀ ǀ_MASK_mask-name___________________________________________________ǀ ǀ_PACKAGE__collection-id.package-id________________________________ǀ ǀ ǀ _VERSION_ ǀ ǀ ǀ ǀ_ǀ________ǀ___version-id_ǀ ǀ ǀ_PERMISSION__permission-name______________________________________ǀ ǀ_PROCEDURE__procedure-name__RESTRICT______________________________ǀ ǀ_ROLE_role-name__RESTRICT_________________________________________ǀ ǀ_SEQUENCE__sequence-name__________________________________________ǀ ǀ_STOGROUP__stogroup-name__________________________________________ǀ ǀ_SYNONYM__synonym_________________________________________________ǀ ǀ_TABLE__table-name________________________________________________ǀ ǀ_TABLESPACE_______________________table-space-name________________ǀ ǀ ǀ_database-name._ǀ ǀ ǀ_TRIGGER__trigger-name____________________________________________ǀ ǀ_TRUSTED CONTEXT__context-name____________________________________ǀ ǀ_TYPE_ type-name____RESTRICT______________________________________ǀ ǀ_VIEW__view-name__________________________________________________ǀ parameter-type: >>____data-type___________________________________________________________>< ǀ_AS LOCATOR____ǀ data-type: >>____built-in-data-type__________________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ ǀ_XML_______________________________________________________________________________________ǀ
END DECLARE SECTION
>>__END DECLARE SECTION____________________________________________________><
EXCHANGE
>>__EXECUTE DATA BETWEEN TABLE table-name1_AND_table-name2_________________><
EXECUTE
>>__EXECUTE__statement-name________________________________________________> >______________________________________________________________________>< ǀ <_,____________ ǀ ǀ_USING____variable_______ǀ______________ǀ ǀ ǀ_array-variable[array-index]__ǀ ǀ_USING__DESCRIPTOR__descriptor-name___ǀ ǀ ǀ_ source-row-data_______________________ǀ source-row-data: <_,_____________________ >>__ _USING___ _host-variable-array_ ǀ__ _________________________________> ǀ ǀ_host-variable_______ǀ ǀ ǀ_USING DESCRIPTOR__descriptor-name_ǀ >__ _______________________________ ______________________________________>< ǀ_FOR_ _host-variable____ _ROWS_ǀ ǀ_integer-constant_ǀ
EXECUTE IMMEDIATE
>>__EXECUTE IMMEDIATE____string-expression_________________________________>< ǀ_host-variable_____ǀ
EXPLAIN
>>__EXPLAIN________________________________________________________________> >_ _ _PLAN_ __ _____________________ _FOR_sql-statement_ _________________>< ǀ ǀ_ALL__ǀ ǀ_SET QUERYNO=integer_ǀ ǀ ǀ_STMTCACHE___ALL_____________________________________ǀ ǀ ǀ_STMTID__ _id-host-variable_ _______ǀ ǀ ǀ ǀ ǀ_integer-constant_ǀ ǀ ǀ ǀ ǀ_STMTTOKEN__ _token-host-variable_ _ǀ ǀ ǀ ǀ_string-constant_____ǀ ǀ ǀ_PACKAGE__package-specification______________________ǀ Package-specification: >>__COLLECTION-collection-name_____________________________________________> >___PACKAGE-package-name___________________________________________________>< ǀ_VERSION_version-nameǀ ǀ_COPY_copy-id_ǀ
FETCH
_FROM_ >>__FETCH_ ___________________________________fetch-orientation____ǀ______ǀ___> ǀ_INSENSITIVE_ǀ ǀ_WITH CONTINUE_ǀ ǀ_SENSITIVE___ǀ >___cursor-name__ ________________________ ___________________________________>< ǀ__ single-row-fetch ____ǀ ǀ__ multiple-row-fetch __ǀ fetch-orientation: >_ _BEFORE________________ ___________________________________________________> ǀ_AFTER_________________ǀ ǀ___row-positioned______ǀ ǀ___rowset-positioned___ǀ row-positioned: _NEXT___________________________ ǀ________________________________ǀ__________________________________________> ǀ_PRIOR__________________________ǀ ǀ_FIRST__________________________ǀ ǀ_LAST___________________________ǀ ǀ_CURRENT________________________ǀ ǀ_ABSOLUTE_ _host-variable____ __ǀ ǀ ǀ_integer-constant_ǀ ǀ ǀ_RELATIVE_ _host-variable____ __ǀ ǀ_integer-constant_ǀ rowset-positioned: _NEXT ROWSET____________________________________________ ________________> ǀ_PRIOR ROWSET___________________________________________ǀ ǀ_FIRST ROWSET___________________________________________ǀ ǀ_LAST ROWSET____________________________________________ǀ ǀ_CURRENT ROWSET_________________________________________ǀ ǀ_ROWSET STARTING AT_ _ABSOLUTE_ __ _host-variable____ __ǀ ǀ_RELATIVE_ǀ ǀ_integer-constant_ǀ single-row-fetch: _________________________________________________________________________> ǀ <_ ,___________ ǀ ǀ_INTO__target-variableǀ_____________ǀ ǀ ǀ_array-variable[array-index]_ǀǀ ǀ_INTO DESCRIPTOR descriptor-name_ǀ__ǀ target-variable: >____global-variable-name____________________________________________________> ǀ__host-variable-name_______ǀ ǀ__SQL-parameter-name_______ǀ ǀ__SQL-variable-name________ǀ ǀ__transition-variable-name_ǀ multiple-row-fetch: ǀ__ _________________________________ ____________________________________> ǀ_FOR__ _host-variable____ __ROWS_ǀ ǀ_integer-constant_ǀ >__ _________________________________ ____________________________________> ǀ </_><_ ,_________________ ǀ ǀ_INTO___host-variable-arrayǀ_____ǀ ǀ_INTO DESCRIPTOR descriptor-name_ǀ
FREE LOCATOR
<_ ,_____________ >>__FREE LOCATOR____host_variable_ǀ__________________________________________><
GET DIAGNOSTICS
>>__GET DIAGNOSTICS__ __statement-information _ _____________________________>< ǀ__condition-information _ǀ ǀ__combined-information _ǀ statement-information: <_,______________________________________________________ >__ ___host-variable1__=__ǀ statement-information-item-name ǀ_ǀ_ ___________> ǀ_host-variable1__=__DB2_GET_DIAGNOSTICS_DIAGNOSTICS_________ǀ ǀ_host-variable1_=_DB2_SQL_NESTING_LEVEL_____________________ǀ statement-information-item-name: <_ ,____________________________________ >_____ _DB2_LAST_ROW_____________________ _ǀ_________________________________> ǀ_DB2_NUMBER_PARAMETER_MARKERS_____ǀ ǀ_DB2_NUMBER_RESULT_SETS___________ǀ ǀ_DB2_RETURN_STATUS________________ǀ ǀ_DB2_SQL_ATTR_CURSOR_HOLD_________ǀ ǀ_DB2_SQL_ATTR_CURSOR_ROWSET_______ǀ ǀ_DB2_SQL_ATTR_CURSOR_SCROLLABLE___ǀ ǀ_DB2_SQL_ATTR_CURSOR_SENSITIVITY__ǀ ǀ_DB2_SQL_ATTR_CURSOR_TYPE_________ǀ ǀ_MORE_____________________________ǀ ǀ_NUMBER___________________________ǀ ǀ_ROW_COUNT________________________ǀ condition-information: >__CONDITION__ _host-variable2_ ____________________________________________> ǀ_integer________ǀ </_><_ ,________________________________________________________ >__host-variable3__ =__ ___condition-information-item-name ___ _ǀ___________> ǀ___connection-information-item-name___ǀ condition-information-item-name: >__ _CATALOG_NAME_______________ ___________________________________________> ǀ_CONDITION_NUMBER___________ǀ ǀ_CURSOR_NAME________________ǀ ǀ_DB2_ERROR_CODE1____________ǀ ǀ_DB2_ERROR_CODE2____________ǀ ǀ_DB2_ERROR_CODE3____________ǀ ǀ_DB2_ERROR_CODE4____________ǀ ǀ_DB2_INTERNAL_ERROR_POINTER_ǀ ǀ_DB2_LINE_NUMBER____________ǀ ǀ_DB2_MESSAGE_ID_____________ǀ ǀ_DB2_MODULE_DETECTING_ERROR_ǀ ǀ_DB2_ORDINAL_TOKEN_n________ǀ ǀ_DB2_REASON_CODE____________ǀ ǀ_DB2_RETURNED_SQLCODE_______ǀ ǀ_DB2_ROW_NUMBER_____________ǀ ǀ_DB2_SQLERRD_SET____________ǀ ǀ_DB2_SQLERRD1_______________ǀ ǀ_DB2_SQLERRD2_______________ǀ ǀ_DB2_SQLERRD3_______________ǀ ǀ_DB2_SQLERRD4_______________ǀ ǀ_DB2_SQLERRD5_______________ǀ ǀ_DB2_SQLERRD6_______________ǀ ǀ_DB2_TOKEN_COUNT____________ǀ ǀ_MESSAGE_TEXT_______________ǀ ǀ_RETURNED_SQLSTATE__________ǀ ǀ_SERVER_NAME________________ǀ connection-information-item-name: >__ _DB2_AUTHENTICATION_TYPE_ ______________________________________________> ǀ_DB2_AUTHORIZATION_ID____ǀ ǀ_DB2_CONNECTION_STATE____ǀ ǀ_DB2_CONNECTION_STATUS___ǀ ǀ_DB2_ENCRYPTION_TYPE_____ǀ ǀ_DB2_SERVER_CLASS_NAME___ǀ ǀ_DB2_PRODUCT_ID__________ǀ combined-information: </_><_ ,___________________________________ >__host-variable4__=__ALL___ _STATEMENT__________________________ǀ__________>< ǀ_ _CONDITION__ __ ________________ _ǀ ǀ_CONNECTION_ǀ ǀ_host-variable5_ǀ ǀ_integer________ǀ
GRANT
>>__GRANT__authorization-specification______________________________________> <_ ,___________________________ >__TO______authorization-name________ǀ______________________________________>< ǀ_PUBLIC__________________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name__________ǀ
GRANT (collection privileges)
<_ ,_____________ >>__GRANT____CREATE_______ON____COLLECTION______collection-id_ǀ_____________> ǀ_PACKADM_ǀ ǀ_IN_ǀ ǀ_*_________________ǀ </_><_ ,______________________ >__TO______authorization-name___ǀ___________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (database privileges)
<_ ,_____________ >>__GRANT_______DBADM_______ǀ__ON DATABASE____database-name_ǀ_____________> ǀ_DBCTRL____ǀ ǀ_DBMAINT___ǀ ǀ_CREATETAB_ǀ ǀ_CREATETS__ǀ ǀ_DISPLAYDB_ǀ ǀ_DROP______ǀ ǀ_IMAGCOPY__ǀ ǀ_LOAD______ǀ ǀ_RECOVERDB_ǀ ǀ_REORG_____ǀ ǀ_REPAIR____ǀ ǀ_STARTDB___ǀ ǀ_STATS_____ǀ ǀ_STOPDB____ǀ </_><_ ,______________________ >__TO_______authorization-name___ǀ______________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (function or procedure privileges)
>>__GRANT__EXECUTE__ON______________________________________________________> <_ ,__________________________________________ >____FUNCTION______function-name_______________________________ǀ____________> ǀ ǀ ǀ </_><_ ,__________________ ǀ ǀ ǀ ǀ ǀ ǀ_(________________________ǀ__)_ǀ ǀ ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ ǀ ǀ_*____________________________________________________ǀ ǀ ǀ <_,_____________ ǀ ǀ_SPECIFIC FUNCTION____specific-name_ǀ_______________________________ǀ ǀ <_,______________ ǀ ǀ_PROCEDURE______procedure-name_ǀ____________________________________ǀ ǀ_*__________________ǀ <_,______________________ >__TO______authorization-name___ǀ_______________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ parameter-type: >>____data-type____________________________________________________________>< ǀ_AS LOCATOR____ǀ data-type: >>____built-in-data-type___________________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ ǀ_XML_______________________________________________________________________________________ǀ
GRANT (package privileges)
>>__GRANT_____ALL____________________ON_____PACKAGE_________________________> ǀ <_ ,_______________ ǀ ǀ_*________ǀ ǀ______BIND_________ǀ_ǀ ǀ_COPY_______ǀ ǀ___EXECUTE__ǀ ǀ_RUN_____ǀ <_,________________________________ >____collection-id._____package-id____ǀ_________________________________> ǀ_*__________ǀ </_><_ ,________________________ >__TO______authorization-name_____ǀ_____________________________________>< ǀ_PUBLIC______________ǀ ǀ_WITHGRANT OPTION_ǀ ǀ_ROLE_role-name______ǀ
GRANT (plan privileges)
<_ ,___________ <_,_________ >>__GRANT_______BIND______ǀ__ON PLAN______plan-name_ǀ________________________> ǀ_EXECUTE_ǀ </_><_ ,______________________ >__TO_______authorization-name___ǀ______________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (schema privileges)
<_ ,_____________ <_,___________ >>__GRANT_______ALTERIN____ǀ__ON__SCHEMA________schema-name_ǀ_______________> ǀ_CREATEIN_ǀ ǀ_DROPIN___ǀ </_><_ ,_______________________ >__TO_______authorization-name___ǀ________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (sequence privileges)
<_ ,__________ <_,____________ >>__GRANT_______ALTER____ǀ__ON_SEQUENCE______sequence-name_ǀ________________> ǀ_USAGE____ǀ ǀ_*_______________ǀ </_><_ ,_______________________ >__TO_______authorization-name___ǀ________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (system privileges)
>>__GRANT___________ACCESSCTRL_______ǀ______________________________________> ǀ_ARCHIVE_____________________________________________ǀ ǀ_BINDADD_____________________________________________ǀ ǀ_BINDAGENT___________________________________________ǀ ǀ_BSDS________________________________________________ǀ ǀ_CREATEALIAS_________________________________________ǀ ǀ_CREATEDBA___________________________________________ǀ ǀ_CREATEDBC___________________________________________ǀ ǀ_CREATESG____________________________________________ǀ ǀ_CREATETMTAB_________________________________________ǀ ǀ_CREATE_SECURE_OBJECT________________________________ǀ ǀ_DATAACCESS__________________________________________ǀ ǀ _WITH ACCESSCTRL_____ _WITH DATAACCESS____ ǀ ǀ_DBADM_ǀ_____________________ǀǀ____________________ǀ_ǀ ǀ ǀ_WITHOUT ACCESSCTRL__ǀǀ_WITHOUT DATAACESS__ǀ ǀ ǀ_DEBUGSESSION________________________________________ǀ ǀ_DISPLAY_____________________________________________ǀ ǀ_EXPLAIN_____________________________________________ǀ ǀ_MONITOR1____________________________________________ǀ ǀ_MONITOR2____________________________________________ǀ ǀ_RECOVER_____________________________________________ǀ ǀ_SQLADM______________________________________________ǀ ǀ_STOPALL_____________________________________________ǀ ǀ_STOSPACE____________________________________________ǀ ǀ_SYSADM______________________________________________ǀ ǀ_SYSCTRL_____________________________________________ǀ ǀ_SYSOPR______________________________________________ǀ ǀ_TRACE_______________________________________________ǀ >___________________________________________________________________________> ǀ_ON SYSTEM_ǀ <_ ,______________________ >__TO_______authorization-name___ǀ__________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
GRANT (table or view privileges)
_PRIVILEGES_ >>__GRANT_____ALL__ǀ____________ǀ____________________________________________> ǀ <_ ,_______________________________________ ǀ ǀ_____ALTER_________________________________ǀ_ǀ ǀ_DELETE_______________________________ǀ ǀ_INDEX________________________________ǀ ǀ_INSERT_______________________________ǀ ǀ_SELECT_______________________________ǀ ǀ_REFERENCES___________________________ǀ ǀ ǀ <_,___________ ǀ ǀ ǀ ǀ_(___column-name_ǀ_)_ǀ ǀ ǀ_TRIGGER______________________________ǀ ǀ_UPDATE_______________________________ǀ ǀ <_,___________ ǀ ǀ_(____column-name_ǀ_)_ǀ _TABLE_ <_,_______________ >__ON__ǀ_______ǀ_______table-name___ǀ_____________________________________> ǀ_view-name__ǀ </_><_ ,_______________________________ >__TO_____authorization-name_____________ǀ________________________________>< ǀ_PUBLIC__________________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name__________ǀ
GRANT (type or JAR privileges)
<_ ,_____________ >>__GRANT__USAGE ON__TYPE__type-name_ǀ____________________________________> ǀ </_><_ ,________ ǀ ǀ_JAR____jar-name_ǀ___________________________ǀ <_,______________________ >__TO______authorization-name___ǀ_________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_ROLE_role-name_____ǀ
GRANT (variable privileges)
_PRIVILEGES_ >>__GRANT_____ALL___ǀ____________ǀ__ON_VARIABLE__variable-name____________> ǀ <_ ,________ ǀ ǀ_______READ___ǀ_______ǀ ǀ_WRITE_ǀ <_,_______________________ >__TO______authorization-name____ǀ________________________________________>< ǀ_PUBLIC______________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_reole-name_____ǀ
GRANT (use privileges)
>>__GRANT USE OF__________________________________________________________> <_ ,____ >____BUFFERPOOL____bpnameǀ________________________________________________> ǀ_ALL BUFFERPOOLS_______________________________________ ǀ </_><_ ,______________ ǀ ǀ_STOGROUP____stogroup-name._ǀ__________________________ǀ ǀ <_,_____________________________________ ǀ ǀ_TABLESPACE_________________________table-space-name_ǀ_ǀ ǀ_database-name._ǀ <_,______________________ >__TO______authorization-name___ǀ__________________________________________>< ǀ_PUBLIC_____________ǀ ǀ_WITH GRANT OPTION_ǀ ǀ_ROLE_role-name_____ǀ
HOLD LOCATOR
<_ ,_____________ >>__HOLD LOCATOR_____host_variable_ǀ_______________________________________><
INCLUDE
>>__INCLUDE____SQLCA_______________________________________________________>< ǀ_SQLDA_______ǀ ǀ_member-name_ǀ
INSERT
>>__INSERT INTO____table-name______________________________________________> ǀ_view-name__ǀ ǀ <_ ,___________ ǀ ǀ_(____column-name_ǀ__)_ǀ >__________________________________________________________________________> ǀ_include-column_ǀ ǀ_OVERRIDING USER VALUE_ǀ >____VALUES_____expression_________________________________________________>< ǀ ǀ ǀ_DEFAULT____ǀ ǀ ǀ ǀ ǀ ǀ_NULL_______ǀ ǀ ǀ ǀ ǀ <_,____________ ǀ ǀ ǀ ǀ_(____expression__ǀ_)_ǀ ǀ ǀ ǀ_DEFAULT____ǀ ǀ ǀ ǀ_NULL_______ǀ ǀ ǀ <_,_____________________ ǀ ǀ_WITH common-table-expression ǀ____________________ǀ ǀ_fullselect________________________________________ǀ ǀ ǀ_WITH____RR___ǀ ǀ_QUERYNO__integer_ǀ ǀ ǀ ǀ_RS_ǀ ǀ ǀ ǀ_CS_ǀ ǀ ǀ_multi-row-insert__________________________________ǀ include-column: <_,_____________________ >>__INCLUDE__(__column-name__data-type_ǀ_)________________________________>< data-type: >>___built-in type________________________________________________________>< ǀ_distinct_type_name_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_FOR___BIT____DATA_ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME_____________________________________________ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ multi-row-insert: >>__VALUES__ _ _expression__________ ________ _______________________________> ǀ ǀ_host-variable-array_ǀ ǀ ǀ ǀ_NULL________________ǀ ǀ ǀ ǀ_DEFAULT_____________ǀ ǀ ǀ ǀ </_><_ ,_____________________ ǀ ǀ_(__ _expression__________ ǀ_)_ǀ ǀ_host-variable-array_ǀ ǀ_NULL________________ǀ ǀ_DEFAULT_____________ǀ >__ ____________________________________ _________________________________> ǀ ǀ ǀ_FOR__ _host-variable____ __ROWS____ǀ ǀ_integer-constant_ǀ _ATOMIC_________________________________ >__ǀ________________________________________ǀ____________________________>< ǀ ǀ ǀ_NOT ATOMIC CONTINUE ON SQLEXCEPTION____ǀ
LABEL
>>__LABEL ON___TABLE____table-name________________IS_string-constant________>< ǀ ǀ ǀ_view-name__ǀ ǀ ǀ ǀ ǀ_ALIAS__alias-name_________________ǀ ǀ ǀ ǀ_COLUMN____table-name.column-name__ǀ ǀ ǀ ǀ_view-name.column-name__ǀ ǀ ǀ <_,________________________________ ǀ ǀ_table-name_(___column-name__IS__string-constant_ǀ__)__ǀ ǀ_view-name__ǀ
LOCK TABLE
>>__LOCK TABLE__table-name_________________________________________________> ǀ_PARTITION__integer_ǀ >__IN____SHARE________MODE_________________________________________________>< ǀ_EXCLUSIVE_ǀ
MERGE
>>__MERGE INTO_____table-name______________________________________________> ǀ_view-name__ǀ ǀ ǀ ǀ_correlation-clause_ǀ >__________________________________________________________________________> ǀ_include-columns_ǀ >__USING_table-reference_ON_search-condition_______________________________> ǀ_source-values_ǀ <___________________________________________________ _ELSE IGNORE_ >_WHEN_matching-condition_THEN_modification-operationǀ_ǀ_____________ǀ_____> >__________________________________________________________________________>< ǀ_NOT ATOMIC CONTINUE ON SQL EXCEPTION_ǀ ǀ_QUERYNO_integer_ǀ include-column: <_______________________ >___INCLUDE__(__column-name__data-type_ǀ_)_________________________________>< correlation-clause: >__________________________________________________________________________>< ǀ _AS_ ǀ ǀ_ǀ____ǀ_correlation-name_________________________ǀ ǀ <_,________________ ǀ ǀ_(_column-name_)_____ǀ_ǀ data-type: >>___built-in type_________________________________________________________>< ǀ_distinct_type_name_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_FOR___BIT____DATA_ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME_____________________________________________ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ source-table: _AS_ <,__________ >>_(VALUES__values-single-row____)_ǀ__ǀ_correlation-name_(_column-name_ǀ_)_>< ǀ_values-multiple-row_ǀ values-single-row: >>____expression___________________________________________________________>< ǀ ǀ_NULL_______ǀ ǀ ǀ <,_______________ ǀ ǀ_(_expression______ǀ__)__ǀ ǀ__NULL_______ǀ values-multiple-row: >>____expression__________________FOR__host-variable____________ROWS______>< ǀ ǀ_host-variable-array_ǀ ǀ ǀ_integer-constant_ǀ ǀ ǀ_NULL_______ǀ ǀ ǀ <,_____________________ ǀ ǀ_(_expression____________ǀ_)_ǀ ǀ__NULL________________ǀ ǀ_host-variable-array_ǀ matching-condition: >>_____________MATCHED_____________________________________________________>< ǀ_NOT_ǀ ǀ_AND_search-condition_ǀ modification-operation: >>____update-operation_____________________________________________________>< ǀ_insert-operation___________________ǀ ǀ_delete-operation___________________ǀ assignment-clause: <,______________________________________________________ >>_column-name_____expression__________________________________ǀ____________>< ǀ ǀ_DEFAULT________ǀ ǀ ǀ ǀ_NULL___________ǀ ǀ ǀ <,________________ <,____________ ǀ ǀ_(_column-name_______ǀ__)_______(___expression_____ǀ__)__ǀ ǀ ǀ_DEFAULT____ǀ ǀ ǀ ǀ_NULL_______ǀ ǀ ǀ_row-fullselect____ǀ update-operation: >>__UPDATE SET assignment-clause____________________________________________>< insert-operation: >>__INSERT______VALUES___________________expression_________________________>< ǀ <,___________ ǀ ǀ ǀ_DEFAULT______ǀ ǀ ǀ_(_column-name_ǀ__)_ǀ ǀ ǀ_NULL_________ǀ ǀ ǀ <,________________ ǀ ǀ_(___expression_______ǀ__)_ǀ ǀ_DEFAULT______ǀ ǀ_NULL_________ǀ delete-operation: >>__DELETE__________________________________________________________________><
OPEN
>>__OPEN__cursor-name_______________________________________________________>< ǀ <_,_____________ ǀ ǀ_USING____________variable_ǀ____________ǀ ǀ ǀ_array-variable[array-index]_ǀ_ǀ ǀ_USING DESCRIPTOR_______descriptor-name_ǀ
PREPARE
>>__PREPARE__statement-name_________________________________________________> >___________________________________________________________________________> ǀ_INTO__descriptor-name__________________________ǀ ǀ _NAMES__ ǀ ǀ_USING__ǀ_LABELS_ǀ_ǀ ǀ_ANY____ǀ ǀ_BOTH___ǀ >__FROM____string-expression________________________________________________>< ǀ________________________________________FROM_host-variable_____ǀ ǀ__ATTRIBUTES__attr-host-variable_ǀ attribute-string: <______________________ >>______ASENSITIVE____________ǀ_____________________________________________>< ǀǀ__INSENTITIVE___________ǀ ǀ ǀǀ__SENSITIVE__STATIC_____ǀ ǀ ǀ ǀ_DYNAMIC_ǀ ǀ ǀ _NO SCROLL_ ǀ ǀ_ǀ_SCROLL____ǀ____________________________ǀ ǀ_holdability______________________________ǀ ǀ_returnability____________________________ǀ ǀ_rowset-positioning_______________________ǀ ǀ_fetch-first-clause_______________________ǀ ǀ__read-only-clause________________________ǀ ǀ ǀ_update-clause___ǀ ǀ ǀ_optimize-clause__________________________ǀ ǀ_isolation-clause_________________________ǀ ǀ__FOR MULTIPLE ROWS_______________________ǀ ǀ ǀ_FOR SINGLE ROW____ǀ ǀ ǀ _ATOMIC_ ǀ ǀ_ǀ________ǀ_______________________________ǀ ǀ ǀ_NOT ATOMIC CONTINUE ON SQLEXCEPTION_ǀ ǀ ǀ__SKIP LOCKED DATA________________________ǀ ǀ ǀ_USE CURRENTLY COMMITTED_ǀ ǀ ǀ ǀ_WAIT FOR OUTCOME________ǀ ǀ ǀ__WITHOUT EXTENDED INDICATORS_____________ǀ ǀ ǀ_WITH EXTENDED INDICATORS____ǀ ǀ ǀ__CONCENTRATE STATEMENTS OFF______________ǀ ǀǀ_CONCENTRATE STATEMENTS WITH LITERALS__ǀ_ǀ holdability: >>__________________________________________________________________________> ǀ_WITHOUT HOLD_ǀ ǀ_WITH HOLD____ǀ returnability: >>___ WITHOUT RETURN _______________________________________________________>< ǀ _TO CALLER_ ǀ ǀ_WITH RETURN_ǀ___________ǀ_ǀ ǀ_TO CLIENT_ǀ rowset-positioning: >>__________________________________________________________________________>< ǀ_WITHOUT ROWSET POSITIONING_ǀ ǀ_WITH ROWSET POSITIONING____ǀ concurrent-access-resolution: >>___SKIP LOCKED DATA_______________________________________________________>< ǀ_USE CURRENTLY COMMITTED___ǀ ǀ_WAIT FOR OUTCOME__________ǀ
REFRESH TABLE
>>__REFRESH_TABLE table-name________________________________________________>< ǀ_QUERYNO integer_ǀ
RELEASE
>>__RELEASE____location-name________________________________________________>< ǀ_host-variable_ǀ ǀ_CURRENT_______ǀ ǀ _SQL_ ǀ ǀ_ALL_ǀ_____ǀ___ǀ
RELEASE SAVEPOINT
_TO_ >>__RELEASE___ǀ____ǀ____SAVEPOINT__svpt-name________________________________><
RELEASE (connection)
>>__RELEASE__ _location-name_ ______________________________________________>< ǀ_host-variable_ǀ ǀ_CURRENT_______ǀ ǀ _SQL_ ǀ ǀ_ALL_ǀ_____ǀ___ǀ
RENAME
_TABLE_ >>__RENAME__ǀ_______ǀ__source-table-name__TO__new-table-identifier_________>< ǀ_INDEX__source-table-name__TO__new-index-identifier___ǀ
REVOKE
>>__REVOKE__authorization-specfication_____________________________________> <_ ,__________________________ >__FROM______authorization-name_______ǀ____________________________________> ǀ_PUBLIC__________________ǀ ǀ_ROLE-role-name__________ǀ >__________________________________________________________________________>< ǀ <_,__________________ ǀ ǀ_BY_____authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ >____INCLUDING DEPENDENT PRIVILEGES________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ ǀ_RESPECT_____ǀ
REVOKE (collection privileges)
<_ ,_____________ >>__REVOKE____CREATE_______IN_____COLLECTION_______collection-id_ǀ___________> ǀ_PACKADM_ǀ ǀ_ON_ǀ ǀ_*_________________ǀ </_><_ ,_______________________ >__FROM______authorization-name____ǀ________________________________________> ǀ_PUBLIC______________ǀ ǀ_ROLE-role-name______ǀ >___________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ____ǀ ǀ_ALL_____________________ǀ >___INCLUDING DEPENDENT PRIVILEGES___________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (database privileges)
<_ ,_____________ >>__REVOKE______DBADM________ǀ__ON DATABASE____database-name_ǀ_____________> ǀ_DBCTRL_____ǀ ǀ_DBMAINT____ǀ ǀ_CREATETAB__ǀ ǀ_CREATETS___ǀ ǀ_DISPLAYDB__ǀ ǀ_DROP_______ǀ ǀ_IMAGCOPY___ǀ ǀ_LOAD_______ǀ ǀ_RECOVERDB__ǀ ǀ_REORG______ǀ ǀ_REPAIR_____ǀ ǀ_STARTDB____ǀ ǀ_STATS______ǀ ǀ_STOPDB_____ǀ </_><_ ,______________________ >__FROM______authorization-name___ǀ________________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE-role-name_____ǀ >__________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ____ǀ ǀ_ALL_____________________ǀ >___INCLUDING DEPENDENT PRIVILEGES_________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (function or procedure privileges)
>>__REVOKE__EXECUTE__ON____________________________________________________> <_ ,___________________________________ >____FUNCTION__function-name____________________________ǀ__________________> ǀ ǀ ǀ </_><_ ,________________ ǀ ǀ ǀ ǀ ǀ ǀ_(___________________ǀ__)_ǀ ǀ ǀ ǀ ǀ ǀ_parameter-type_ǀ ǀ ǀ ǀ ǀ_*__________________________________________ǀ ǀ ǀ <_,_____________ ǀ ǀ_SPECIFIC FUNCTION____specific-name_ǀ_________________ǀ ǀ <_,______________ ǀ ǀ_PROCEDURE______procedure-name_ǀ______________________ǀ ǀ_*__________________ǀ <_,_____________________ >___FROM______authorization-name___ǀ______________________RESTRICT________> ǀ_PUBLIC_____________ǀ ǀ </_><_ ,________________ ǀ ǀ_ROLE-role-name_____ǀ ǀ_BY___authorization-name_ǀ___ǀ ǀ_ROLE-role-name_________ǀ ǀ_ALL____________________ǀ >___INCLUDING DEPENDENT PRIVILEGES________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ parameter-type: >>____data-type__________________________________________________________>< ǀ_AS LOCATOR____ǀ data-type: >>____built-in-data-type_________________________________________________>< ǀ_distinct-type-name_ǀ ǀ_array-type-name____ǀ built-in-data-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ_UNICODE_ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ ǀ ǀ _(1M)_______ ǀ ǀ ǀ ǀ_____CHARACTER___LARGE OBJECT_ ǀ____________ǀ__________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(_integer_)_ǀ ǀ_CCSID__ASCII___ǀ ǀ_FOR__SBCS____DATA_ǀ ǀ ǀ ǀ___CLOB______________________ǀ ǀ_EBCDIC__ǀ ǀ_MIXED_ǀ ǀ ǀ __(1)______________ ǀ_UNICODE_ǀ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ_CCSID__ASCII____ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ_EBCDIC___ǀ ǀ ǀ ǀ __(1M)_____________ ǀ_UNICODE__ǀ ǀ ǀ ǀ_DBCLOB_ǀ___________________ǀ ǀ ǀ ǀ_(integer)_________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ ǀ _(1M)___________________ ǀ ǀ ǀ ǀ_BINARY LARGE OBJECT_____ǀ________________________ǀ______ǀ ǀ ǀ ǀ_BLOB________________ǀ ǀ_(__integer________)____ǀ ǀ ǀ ǀ_K_ǀ ǀ ǀ ǀ_M_ǀ ǀ ǀ ǀ_G_ǀ ǀ ǀ___DATE____________________________________________________________________________________ǀ ǀ ǀ_TIME______ǀ ǀ ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ________________________________________ǀ ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ ǀ ǀ_ROWID_____________________________________________________________________________________ǀ ǀ_XML_______________________________________________________________________________________ǀ
REVOKE (package privileges)
>>__REVOKE_____ALL______________________________________________________> ǀ <_ ,_______________ ǀ ǀ____BIND___________ǀ_ǀ ǀ_COPY________ǀ ǀ___EXECUTE___ǀ ǀ_RUN_____ǀ <_,_____________________________ >__ON_____PACKAGE______collection-id.__package-id_____ǀ_________________> ǀ_PROGRAM_ǀ ǀ_*___________ǀ </_><_ ,_____________________ >__FROM_______authorization-name___ǀ____________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE-role-name_____ǀ >_______________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY_______authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ ǀ_ROLE-role-name_________ǀ >___INCLUDING DEPENDENT PRIVILEGES______________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (plan privileges)
<_ ,__________ <_,_________ >>__REVOKE_______BIND______ǀ__ON PLAN____plan-name_ǀ_____________________> ǀ_EXECUTE_ǀ </_><_ ,_______________________ >___FROM______authorization-name___ǀ_____________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE-role-name_____ǀ >________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY_____authorization-name_ǀ____ǀ ǀ_ALL_____________________ǀ ǀ_ROLE-role-name__________ǀ >____INCLUDING DEPENDENT PRIVILEGES______________________________________> ǀ_NOT INCLUDING DEPENDENT PRIVILEGES___ǀ </_>
REVOKE (schema privileges)
<_ ,____________ <_,__________ >>__REVOKE______ALTERIN_____ǀ__ON__SCHEMA_______schema-name_ǀ_____________> ǀ_CREATEIN__ǀ ǀ_*________________ǀ ǀ_DROPIN____ǀ </_><_ ,_______________________ >__FROM______authorization-name____ǀ______________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE-role-name_____ǀ >_________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ ǀ_ROLE-role-name_________ǀ >___INCLUDING DEPENDENT PRIVILEGES________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (sequence privileges)
<_ ,___________ <_,__________ >>__REVOKE______ALTER______ǀ__ON__SEQUENCE_____schema-name_ǀ______________> ǀ_USAGE______ǀ </_><_ ,______________________ >__FROM______authorization-name___ǀ_______________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE-role-name_____ǀ _RESTRICT_ >___________________________________________ǀ__________ǀ__________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ ǀ_ROLE_role-name_________ǀ >___INCLUDING DEPENDENT PRIVILEGES________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (system privileges)
<_ ,____________________ <_,__________________ >>__REVOKE______ACCESSCTRL____________ǀ___FROM_authorization-name__ǀ__> ǀ_ARCHIVE______________ǀ ǀ_PUBLIC_____________ǀ ǀ_BINDADD______________ǀ ǀ_ROLE_role-name_____ǀ ǀ_BINDAGENT____________ǀ ǀ_BSDS_________________ǀ ǀ_CREATEALIAS__________ǀ ǀ_CREATEDBA____________ǀ ǀ_CREATEDBC____________ǀ ǀ_CREATSG______________ǀ ǀ_CREATETMTAB__________ǀ ǀ_CREATE_SECURE_OBJECT_ǀ ǀ_DATAACCESS___________ǀ ǀ_DBADAM_______________ǀ ǀ_DEBUGSESSION_________ǀ ǀ_DISPLAY______________ǀ ǀ_EXPLAIN______________ǀ ǀ_MONITOR1_____________ǀ ǀ_MONITOR2_____________ǀ ǀ_RECOVER______________ǀ ǀ_SQLADM_______________ǀ ǀ_STOPALL______________ǀ ǀ_STOSPACE_____________ǀ ǀ_SYSADM_______________ǀ ǀ_SYSCTRL______________ǀ ǀ_SYSOPR_______________ǀ ǀ_TRACE________________ǀ >______________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY_____authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ ǀ_ROLE_role-name_________ǀ >____INCLUDING DEPENDENT PRIVILEGES______________________________________> ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ </_>
REVOKE (table or view privileges)
_PRIVILEGES_ >>__REVOKE____ALL___ǀ____________ǀ_______________________________________> ǀ <_ ,_______________ ǀ ǀ______ALTER________ǀ__ǀ ǀ_DELETE_____ǀ ǀ_INDEX______ǀ ǀ_INSERT_____ǀ ǀ_REFERENCES_ǀ ǀ_SELECT_____ǀ ǀ_TRIGGER____ǀ ǀ_UPDATE_____ǀ _TABLE_ >__ON__ǀ_______ǀ_______table-name___ǀ____________________________________> ǀ_view-name__ǀ </_><_ ,____________________________ >__FROM______authorization-name__________ǀ_______________________________> ǀ_PUBLIC___________________ǀ ǀ_ROLE_role-name___________ǀ >________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ____ǀ ǀ_ALL_____________________ǀ ǀ_ROLE_role-name__________ǀ >___INCLUDING DEPENDENT PRIVILEGES_______________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (type or JAR privileges)
<_ ,_________________ >>__REVOKE__USAGE ON___________TYPE________________type-name_ǀ___________> ǀ </_><_ ,______ ǀ ǀ_JAR___jar-name_ǀ___________ǀ <_,_______________________ >__FROM______authorization-name____ǀ_____________________________________> ǀ_PUBLIC______________ǀ ǀ_ROLE_role-name______ǀ >_______________________________________RESTRICT_________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ____ǀ ǀ_ALL_____________________ǀ >___INCLUDING DEPENDENT PRIVILEGES_______________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (use privileges)
>>__REVOKE USE OF________________________________________________________> <_______>____BUFFERPOOL____bpname_ǀ______________________________________________> ǀ_ALL BUFFERPOOLS______________________________________ǀ ǀ <_ ,_____________ ǀ ǀ_STOGROUP____stogroup-name_ǀ__________________________ǀ ǀ <_,____________________________________ ǀ ǀ_TABLESPACE________________________table-space-name_ǀ_ǀ ǀ_database-name._ǀ <_,______________________ >__FROM______authorization-name___ǀ_______________________________________> ǀ_PUBLIC_____________ǀ ǀ_ROLE_role-name_____ǀ >_________________________________________________________________________> ǀ </_><_ ,__________________ ǀ ǀ_BY______authorization-name_ǀ___ǀ ǀ_ALL____________________ǀ ǀ_ROLE_role-name_________ǀ >___INCLUDING DEPENDENT PRIVILEGES________________________________________>< ǀ_NOT INCLUDING DEPENDENT PRIVILEGES__ǀ
REVOKE (variable privileges)
_PRIVILEGES_ >>_REVOKE____ALL____ǀ____________ǀ__ON_VARIABLE__variable-name____________> ǀ <_ ,_________ ǀ ǀ_______READ___ǀ_______ǀ ǀ_WRITE_ǀ <_,_______________________ >_FROM______authorization-name____ǀ_______________________________RESTRICT__>< ǀ_PUBLIC______________ǀ ǀ_BY_________________________ǀ ǀ_ROLE_role-play______ǀ ǀ <_,________________ ǀ ǀ__ authorization-name_ǀ_ǀ ǀ___ROLE_role-name_______ǀ ǀ___ALL__________________ǀ
ROLLBACK
_WORK_ >>__ROLLBACK__ǀ______ǀ______________________________________________________>< ǀ_TO SAVEPOINT_________________ǀ ǀ_svpt-name_ǀ
SAVEPOINT
>>__SAVEPOINT__svpt-name____________________________________________________> ǀ_UNIQUE_ǀ _ON ROLLBACK RETAIN LOCKS_ >__ON ROLLBACK RETAIN CURSORS__________ǀ__________________________ǀ_________><
SELECT INTO
>___________________________________________________________________________> ǀ <__________________________ ǀ ǀ_WITH __common-table-expression____ǀ_ǀ <_,_______________ >__select-clause__INTO____target-variable_ǀ_from-clause_____________________> ǀ_where-clause_ǀ >___________________________________________________________________________> ǀ_group-by-clause_ǀ ǀ_having-clause_ǀ ǀ_order-by-clause_ǀ <_ ,__________________ >________________________ǀ__________________________________________________> ǀ_SKIP_LOCKED_DATA_ǀ ǀ_QUERYNO__integer_ǀ ǀ_WITH____RR_______ǀ ǀ_RS_ǀ ǀ_CS_ǀ ǀ_UR_ǀ >__ ____________________________________ ________________________________>< ǀ _1_ ǀ ǀ_FETCH FIRST__ǀ___ǀ__ _ROW__ __ONLY_ǀ ǀ_ROWS_ǀ target-variable: >___global-variable-name_________________________________________________>< ǀ_host-variable-name_______ǀ ǀ_SQL-parameter-name_______ǀ ǀ_SQL-variable-name________ǀ ǀ_transition-variable-name_ǀ
SET CONNECTION
>>__SET CONNECTION____location-name______________________________________>< ǀ_host-variable____ǀ
SET assignment statement
>>__SET ____assignment-clause____________________________________________>< assignment-clause: ǀ_array-variable-name__(_array-index_)_-____expression___________________ǀ ǀ ǀ_NULL______ǀ ǀ ǀ <_,________________________________________________________________ǀ ǀ_target-variable_________________________expression_______________ǀ__ǀ ǀ ǀ_NULL______ǀ ǀ ǀ ǀ_DEFAULT___ǀ ǀ ǀ <_,______________ <_,________________ ǀ ǀ_(_ target-variable_ǀ_)_-_(______expression_______ǀ________________)_ǀ ǀ ǀ__NULL__________ǀ ǀ ǀ ǀ_DEFAULT________ǀ ǀ ǀ_row subselect______________________ǀ ǀ_VALUES____expression_______________ǀ ǀ ǀ__NULL_________ǀ ǀ ǀ ǀ_DEFAULT_______ǀ ǀ ǀ <_,_____________ ǀ ǀ_(____expression____ǀ_)__ǀ ǀ_NULL_________ǀ ǀ_DEFAULT______ǀ target-variable: >___global-variable-name___________________________________________________>< ǀ_host-variable-name_______ǀ ǀ_SQL-parameter-name_______ǀ ǀ_SQL-variable-name________ǀ ǀ_transition-variable-name_ǀ
SET CURRENT APPLICATION COMPATIBILITY
_=_ >>__SET CURRENT_APPLICATION COMPATIBILITY_____ǀ___ǀ___string-constant______>< ǀ_host-variable___ǀ
SET CURRENT APPLICATION ENCODING SCHEME
_APPLICATION_ _=_ >>__SET CURRENT_ǀ_____________ǀ_ENCODING SCHEME___ǀ___ǀ____________________> >___string-constant________________________________________________________>< ǀ_host-variable____ǀ
SET CURRENT DEBUG MODE
_=_ >>__SET CURRENT_DEBUG MODE_ǀ___ǀ___host-variable___________________________>< ǀ_DISALLOW_______ǀ ǀ_ALLOW__________ǀ ǀ_DIABLE_________ǀ
SET CURRENT DECFLOAT ROUNDING MODE
_=_ >>__SET CURRENT DECFLOAT ROUNDING MODE_ǀ___ǀ___ROUND CEILING____________>< ǀ_ROUND_DOWN_________ǀ ǀ_ROUND_FLOOR________ǀ ǀ_ROUND_HALF_DOWN____ǀ ǀ_ROUND_HALF_EVEN____ǀ ǀ_ROUND_HALF_UP______ǀ ǀ_ROUND_UP___________ǀ ǀ_string-constant____ǀ ǀ_host-variable______ǀ
SET CURRENT DEGREE
>>__SET CURRENT DEGREE =___string-constant______________________________>< ǀ_host-variable___ǀ
SET CURRENT EXPLAIN MODE
>>__SET CURRENT EXPLAIN MODE =__NO______________________________________>< ǀ_YES___________ǀ ǀ_EXPLAIN_______ǀ ǀ_host-variable_ǀ
SET CURRENT GET_ACCEL_ARCHIVE
_=_ >>__SET CURRENT_GET_ACCEL_ARCHIVE_ǀ___ǀ___NO____________________________>< ǀ_YES___________ǀ ǀ_host-variable_ǀ
SET CURRENT LOCALE LC_CTYPE
_=_ >>__SET______________________________LC_CTYPE_____ǀ___ǀ__________________> ǀ ǀ_CURRENT_____________ǀ ǀ ǀ ǀ_LOCALE_ǀ ǀ ǀ_CURRENT_LC_CTYPE___________________ǀ >____string-constant_____________________________________________________>< ǀ_host-variable___ǀ
SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION
_TABLE_ _FOR OPTIMIZATION_ _=_ >>__SET CURRENT MAINTAINED_ǀ_______ǀ_TYPES_ǀ__________________ǀ_ǀ___ǀ____> >__ALL____________ ______________________________________________________>< ǀ_NONE__________ǀ ǀ_SYSTEM________ǀ ǀ_SESSION USER__ǀ ǀǀ_USER________ǀǀ ǀ_host-variable_ǀ
SET CURRENT OPTIMIZATION HINT
>>__SET CURRENT OPTIMIZATION HINT =____string-constant___________________>< ǀ_host-variable___ǀ
SET CURRENT PACKAGE PATH
_=_ <_ ,________________________ >>__SET CURRENT PACKAGE PATH_ǀ___ǀ___ _collection-id__________ ǀ_________>< ǀ_SESSION_USER___________ǀ ǀǀ_USER__________ǀ ǀ ǀ_CURRENT PACKAGE PATH___ǀ ǀ_CURRENT PATH___________ǀ ǀ_host-variable__________ǀ ǀ_string-constant________ǀ
SET CURRENT PACKAGESET
>>__SET CURRENT PACKAGESET =_____SESSION USER____________________________>< ǀǀ_USED________ǀ ǀ ǀ_string-constant_ǀ ǀ_host-variable___ǀ
SET CURRENT PRECISION
>>__SET CURRENT PRECISION =_____string-constant__________________________>< ǀ_host-variable____ǀ
SET CURRENT QUERY ACCELERATION
>>__SET CURRENT QUERY ACCELERATION_ǀ___ǀ_ _NONE__________________________>< ǀ_ENABLE_______________ǀ ǀ_ENABLE WITH FAILBACK_ǀ ǀ_ELIGIBLE_____________ǀ ǀ_ALL__________________ǀ ǀ_host-variable________ǀ
SET CURRENT REFRESH AGE
_=_ >>__SET CURRENT REFRESH AGE___ǀ___ǀ___ _numeric-constant_ _______________>< ǀ_ANY______________ǀ ǀ_host-variable____ǀ
SET CURRENT RULES
>>__SET CURRENT RULES =_____string-constant______________________________>< ǀ_host-variable___ǀ
SET CURRENT ROUTINE VERSION
_=_ >>__SET CURRENT ROUTINE VERSION_ǀ___ǀ__routine-version-id_______________>< ǀ_string-constant___ǀ ǀ_host-variable_____ǀ
SET CURRENT SQLID
>>__SET CURRENT SQLID =____SESSION USER_________________________________>< ǀǀ_USER________ǀ ǀ ǀ_string-constant_ǀ ǀ_host-variable¬___ǀ
SET CURRENT TEMPORAL BUSINESS_TIME
_=_ >>__SET CURRENT TEMPORAL BUSINESS_TIME_ǀ___ǀ______NULL__________________>< ǀ_expression___ǀ
SET CURRENT TEMPORAL SYSTEM_TIME
_=_ >>__SET CURRENT TEMPORAL SYSTEM_TIME_ǀ___ǀ______NULL____________________>< ǀ_expression___ǀ
SET ENCRYPTION PASSWORD
_=_ >>__SET ENCRYPTION PASSWORD___ǀ___ǀ___ _password-host-variable__________> ǀ_password-string-const__ǀ >_______________________________________________________________________>< ǀ _=_ ǀ ǀ_WITH HINT_ǀ___ǀ__hint-host-variable___ǀ ǀ_hint-string-const__ǀ
SET PATH
_CURRENT_ _=_ >>__SET__ǀ_________ǀ__PATH__ǀ___ǀ_______________________________________> <_ ,______________________ >____ _schema-name__________ _ǀ ǀ_SYSTEM PATH__________ǀ ǀ_SESSION USER_________ǀ ǀǀ_USER___________ǀ ǀ ǀ _CURRENT_ ǀ ǀ_ǀ_________ǀ__PATH____ǀ ǀ_CURRENT PACKAGE PATH_ǀ ǀ_host-variable________ǀ ǀ_string-constant______ǀ </_>
SET SCHEMA
_CURRENT_ _=_ >>__SET__ǀ_________ǀ__SCHEMA___ǀ___ǀ____schema-name_____________________> ǀ_CURRENT_SCHEMA_____ǀ ǀ_SESSION USER__________ǀ ǀǀ_USER____________ǀ ǀ ǀ_host-variable_________ǀ ǀ_string-constant_______ǀ ǀ_DEFAULT_______________ǀ
SET SESSION TIME ZONE
_=_ >>__SET_SESSION TIME ZONE___ǀ___ǀ____string-constant____________________> ǀ_host-variable______ǀ
SIGNAL SQLSTATE
_VALUE_ >>__SIGNAL__SQLSTATE_ǀ_______ǀ__sqlstate-string-constant¬________________> ǀ ǀ_variable-name___________ǀ ǀ ǀ_condition-name_________________________________ǀ >__(__diagnostic-string-constant__)_____________________________________><
TRANSFER OWNERSHIP
>>__TRANSFER OWNERSHIP OF_object_TO_new_owner____REVOKE PRIVILEGES______> object: >_____DATABASE_database-name____________________________________________>< ǀ_INDEX index-name_________________________ǀ ǀ_STOGROUP stogroup-name___________________ǀ ǀ_TABLE table-name_________________________ǀ ǀ_TABLESPACE_______________tablespace-name_ǀ ǀ ǀdatabase-name_ǀ ǀ ǀ_VIEW view-name___________________________ǀ new-owner: >_____ROLE_role-name____________________________________________________>< ǀ_USER authorization-name___ǀ ǀ_SESSION_USER______________ǀ
TRUNCATE
_TABLE_ ___DROP STORAGE___ >>__TRUNCATE_ǀ_______ǀ___table-name__ǀ__________________ǀ_______________> ǀ_REUSE STORAGE_ǀ _IGNORE DELETE TRIGGERS___________ >_____ǀ_RESTRICT WHEN DELETE TRIGGERS____ǀ______________________________>< ǀ_IMMEDIATE_ǀ
UPDATE
searched-update: >>__UPDATE____table-name______________________________________________> ǀ_view-name__ǀ ǀ_correlation-name_ǀ ǀ_include_column_ǀ >__SET__assignment-clause_____________________________________________> ǀ_WHERE__search-condition_ǀ >_____________________________________________________________________> ǀ_SKIP LOCKED DATA_ǀ ǀ_QUERYNO__integer_ǀ ǀ_WITH____RR_______ǀ ǀ_RS_ǀ ǀ_CS_ǀ positioned update: >>__UPDATE___table-name_______________________SET_assignment-clause_______> ǀ_view-name__ǀ ǀ_correlation-name_ǀ >_WHERE CURRENT OF_cursor-name___________________________________________>< ǀ_FOR ROW__host-variable___OF ROWSET_ǀ ǀinteger-constantǀ period-clause: >>_FOR PORTION OF BUSINESS_TIME__FROM_value1_TO_value2___________________>< ǀ_BETWEEN value1 AND value2___ǀ include-column: <_,______________________ >>_INCLUDE_(__column-name____data-type__ǀ___)____________________________>< data-type: >>___built-in type_______________________________________________________>< ǀ_distinct_type_name_ǀ built-in-type: >__SMALLINT__________________________________________________________________________________>< ǀ ǀ_INTEGER__ǀ ǀ ǀ ǀ ǀINT__ǀ ǀ ǀ ǀ ǀ_BIGINT___ǀ ǀ ǀ ______(5,0)______________________ ǀ ǀ__DECIMAL____ǀ_________________________________ǀ___________________________________________ǀ ǀǀ_DEC_____ǀ ǀ_(__integer________________)_____ǀ ǀ ǀǀ_NUMERIC_ǀ ǀ_, integer_ǀ ǀ ǀ _(34)_ ǀ ǀ_DECFLOAT_ ǀ______ǀ________________________________________________________________________ǀ ǀ ǀ_(16)_ǀ ǀ ǀ _(53)__________ ǀ ǀ___FLOAT__ǀ_______________ǀ________________________________________________________________ǀ ǀ ǀ ǀ_(__integer__)_ǀ ǀ ǀ_ǀ_REAL___________________ǀ ǀ ǀ ǀ _PRECISION_ ǀ ǀ ǀ_ǀ_DOUBLE__ǀ___________ǀ__ǀ ǀ ǀ __(1)___________ ǀ ǀ_______CHARACTER____ǀ________________ǀ_____________________________________________________ǀ ǀ ǀ ǀ ǀ_CHAR______ǀ ǀ_(integer__)_____ǀ ǀ ǀ_FOR___BIT____DATA_ǀ ǀ ǀ ǀ ǀ___CHARACTER__VARYING__(_integer__)__ǀ ǀ ǀ ǀ ǀ ǀ_CHAR_____ǀ ǀ ǀ ǀ ǀ ǀ__VARCHAR____________ǀ ǀ ǀ __(1)______________ ǀ ǀ___GRAPHIC_ǀ__________________ǀ____________________________________________________________ǀ ǀ ǀ ǀ_(__integer___)___ǀ ǀ ǀ ǀ ǀ_VARGRAPHIC__(__integer__)___________ǀ ǀ ǀ _(1)________ ǀ ǀ_ _BINARY__ǀ____________ǀ__________________________________________________________________ǀ ǀ ǀ ǀ_(integer)__ǀ ǀ ǀ ǀ ǀ__BINARY VARYING _(integer)______________________________ǀ ǀ ǀ ǀ ǀ_VARBINARY_____ǀ ǀ ǀ ǀ__DATE_____________________________________________________________________________________ǀ ǀ_TIME_____________________________________________ǀ ǀ __(_6_)_____ _WITHOUT TIME ZONE_ ǀ ǀ_TIMESTAMP_ǀ____________ǀ___ǀ___________________ǀ_ǀ ǀ_(integer_)_ǀ ǀ_WITH TIME ZONE____ǀ assignment-clause: <_,___________________________________________________________ >>______column-name=___expression_________________________________ǀ______>< ǀ ǀ_DEFAULT_________________ǀ ǀ ǀ ǀ_NULL____________________ǀ ǀ ǀ <_,___________ <_,______________ ǀ ǀ_(_column-name_ǀ_)__=__(__________expression___ǀ_______)_ǀ ǀ ǀ_DEFAULT____ǀ ǀ ǀ ǀ_NULL_______ǀ ǀ ǀ_row-fullselect__________ǀ ǀ_UNPACK function invoc.__ǀ
VALUES
>>__VALUES____expression__________________________________________________>< ǀ <_,____________ ǀ ǀ_(____expression__ǀ_)_ǀ
VALUES INTO
>>__VALUES___CURRENT PACKAGESET______INTO__target-variable_________________>< ǀ ǀ_CURRENT PACKAGE PATH_ǀ ǀ ǀ ǀ_CURRENT SERVER_______ǀ ǀ ǀ <_,____________ <_,_______________ ǀ ǀ_(____expression__ǀ_)_INTO_____target-variable___ǀ__________ǀ ǀ_NULL_______ǀ ǀ_array-variable_(_array-index_)_ǀ target-variable: >___global-variable-name___________________________________________________>< ǀ_host-variable-name_______ǀ ǀ_SQL-parameter-name_______ǀ ǀ_SQL-variable-name________ǀ ǀ_transition-variable-name_ǀ
WHENEVER
>>__WHENEVER_____NOT FOUND________CONTINUE_________________________________>< ǀ_SQLERROR___ǀ ǀ___GOTO______host-label_ǀ ǀ_SQLWARNING_ǀ ǀ_GO TO_ǀ
</_>
</_></__________________________>
</_>
</_></_______>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</___________________________________________________>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_>
</_____________________________________________________></_____________________________________________></_>
</________________________>
</__></_>
</____________________________></______________________________________></_>
</_></______________________________________></_>
</________________></_____________________________></_________________>
</_________________________________></_></____________________________________________________></_>
</_>
</_>
</_>
</_________________________________________></_></________________________________________></_>
</____________>
</_>
</_>
</____________________________></_>
</___________________________></_>
</_>
</____________________________________________>
</_>
</_>
</_______________________________________________________________________>
</_></______________________________________>
</_______________________________________>
</_></__>
</_____________________________________________>
</_></______________________________________________________________>
</_></_______________________></_>
</_></____________________________________________>
</_>
Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at [email protected]. Db2 is a registered trademark of the IBM Corporation.