Some examples of using the CREATE TABLE statement are:
Create a table with the following specifications:
The example assumes that JOE is the default authorization ID in effect when the statement is executed. In this case, it is not necessary to specify the authorization ID.
The default area name is specified, although it is not necessary. If you do not specify an area name, the table is automatically placed in the default area. You must specify the area name if you want to place the table in an area other than the default.
EXEC SQL
CREATE TABLE DEPTTBL
(DEPTNO CHAR(2),
DEPTNAME CHAR(24),
MGRNBR CHAR(6),
ADMDEPT CHAR(2))
IN CASQLDEFAULT
END-EXEC
|
Copyright © 2014 CA.
All rights reserved.
|
|