If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > Database Server Software > DB2 > tableid

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Dec 2004
Posts: 10

hi, I get an error while running some sql on my db2 7.2.

The error says Assignment of a NULL value to a NOT NULL column.... TBSPACEID=2, TABLEID=78, COLNO=9..

How can I find out what table has ID 78 and what col has id 9 ?


Reply With Quote
  #2 (permalink)  
Join Date: Dec 2001
Posts: 79
select tabname, colname from syscat.columns where colno=9 and tabname=(select tabname from syscat.tables where tbspaceid=2 and tableid=78)"
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On