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 > How to generate Columns default values as GENERATE_UNIQUE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-09, 05:11
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 64
Thumbs up How to generate Columns default values as GENERATE_UNIQUE

Hi ,

I have a create table query as below
Quote:
CREATE TABLE Address (rowguid VARGRAPHIC(36) DEFAULT GENERATE_UNIQUE NOT NULL)
My intention is to have a value generated by GENERATE_UNIQUE function as default .

When i try to execute the above query, too many errors are thrown .

Please suggest me the correct syntax .

Thanks in advance.......
Reply With Quote
  #2 (permalink)  
Old 10-09-09, 22:09
DB2Plus DB2Plus is offline
Registered User
 
Join Date: Jul 2009
Posts: 150
Quote:
Originally Posted by sushma007
Hi ,

I have a create table query as below

My intention is to have a value generated by GENERATE_UNIQUE function as default .

When i try to execute the above query, too many errors are thrown .

Please suggest me the correct syntax .

Thanks in advance.......
Syntax:
5.41 "DB2 V9.1 for z/OS SQL Reference" IBM Library Server
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