Dictionary Manipulation Statements
Data Definition Language (DDL) Reference Manual — 426798-002
8 -3
DELETE Statement
references, in which, for example, object B refers to object A and object C refers to
object A by referring to object B.
DELETE Statement Examples
The following example shows how to delete a record interactively:
The following shows how to delete a definition called ZIP-CD that is referenced by two
other definitions (ADDR and CUSTINFO), one of which (ADDR) is referenced by two
records (CUSTOMER and SUPPLIER):
As shown in the following example, you can enter this code interactively (as in the first
example) or you can place the code in a source file and use the SOURCE command to
pass the code to the DDL compiler:
The following shows how to delete an SPI token type that is referenced by two SPI
token codes, first delete the token codes:
06> VOLUME $spi.tokens
07> DDL DICT
!DELETE TOKEN-CODE assn-tkn-my-status, assn-tkn-stat-reply.
!DELETE TOKEN-TYPE assn-typ-status.
!EXIT
03> VOLUME $data.sales
04> DDL
!?DICT
!DELETE RECORD employee .
!EXIT
Go to subvolume with dictionary
Run DDL compiler
Open dictionary
Delete record
VST801.vsd
!?DICT $data.sales
!DELETE RECORD customer supplier .
!DELETE DEF addr custinfo .
!DELETE DEF zip-cd .
Open dictionary in its subvolume
Delete two records that refer to ADDR
Delete two definitions that refer to ZIP-CD
Now delete ZIP-CD
VST802.vsd
05> DDL
!?SOURCE del-file
!EXIT
Execute DICT command and
DELETE statements in DEL-FILE
VST803.vsd
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...