HP c-tree-SQL ISQL and Tools manual Tablename, Type Length Colname Null ?, Date

Models: c-tree-SQL ISQL and Tools

1 99
Download 99 pages 4.83 Kb
Page 67
Image 67

 

 

 

 

ISQL Statements

 

 

 

 

has_ccnstrs

NOT NULL

VARCHAR

1

has_ucnstrs

NOT NULL

VARCHAR

1

tbl_status

NOT

NULL

VARCHAR

1

rssid

NOT

NULL

INT

4

The following example uses the table command to detail the structure of the tables used in examples throughout this chapter.

ISQL> table

- List the sample tables

 

 

TABLENAME

 

 

 

---------

 

 

 

customers

 

 

 

lot_staging

 

 

 

lots

 

 

 

orders

 

 

 

quality

 

 

 

samples

 

 

 

ISQL> table customers

TYPE

LENGTH

COLNAME

NULL ?

-------

------

----

------

customer_id

NOT NULL

INT

4

customer_name

 

CHAR

50

customer_street

CHAR

100

customer_city

 

CHAR

50

customer_state

CHAR

10

customer_zip

 

CHAR

5

ISQL> table orders

TYPE

LENGTH

COLNAME

NULL ?

-------

------

----

------

order_id

NOT NULL

INT

4

customer_id

 

INT

4

steel_type

 

CHAR

20

order_info

 

CHAR

200

order_weight

 

INT

4

order_value

 

INT

4

order_state

 

CHAR

20

ISQL> table lots

TYPE

LENGTH

COLNAME

NULL ?

-------

------

----

------

lot_id

NOT NULL

INT

4

order_id

NOT NULL

INT

4

lot_units

 

INT

4

lot_info

 

CHAR

200

ISQL> table lot_staging

TYPE

LENGTH

COLNAME

NULL ?

-------

------

----

------

lot_id

 

INT

4

lot_location

 

CHAR

20

start_date

 

DATE

 

end_date

 

DATE

200

issues

 

CHAR

ISQL> table quality

TYPE

LENGTH

COLNAME

NULL ?

-------

------

----

------

FairCom Corporation

3-41

Page 67
Image 67
HP c-tree-SQL ISQL and Tools manual Tablename, Type Length Colname Null ?, Date