Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can we have index on TYPEd tables ?

Status
Not open for further replies.

ifxtechie

Technical User
Dec 22, 2000
127
0
0
US
Hi
Can we have index and trigger on TYPEd tables.
Also can we have primary key constraint on such tables. The moment I tried to create the primary key, it says, the column can take null values and if I impose in the TYPE, then it says the following error.

CREATE TYPE "TIPT_TYPE" AS ( "ID" integer NOT NULL, "NAME" VARCHAR(30) , "SYSCAT_TAB" VARCHAR(30), "ITEM_TYPE" VARCHAR(4)) INSTANTIABLE INLINE LENGTH 132 WITHOUT COMPARISONS NOT FINAL REF USING INTEGER MODE DB2SQL
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "NULL" was found following "S ( "ID" integer NOT". Expected tokens may include: "COMPACT". SQLSTATE=42601


If so, can you pls give the syntax [pls don't say 'search in google']
Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top