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 > Types and tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 08:16
English_Bloke82 English_Bloke82 is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Types and tables

Hi,
Ive created a type called person_type that has the attributes name and birthdate. When i make a table from that type i need to add (ref is .......user generated) at the end of the create statement. The thing is when i add the informaiton into the table what do i do? Ive written
Insert into person values('1','James','1982') but it does not like the 1. What is the ref for? And if it can be an integer is there anyway to auto increment it?
Cheers
James
BTW Im using IBM DB2
Reply With Quote
Reply

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