Subject | Re: [IBO] SQL question |
---|---|
Author | G. Allen Casteran |
Post date | 2002-01-11T18:59:56Z |
At 09:21 AM 1/11/2002 -0800, you wrote:
1) Add the field but declare as allowing NULL
2) Fill in the field for existign rows.
3) Change the field definition to NOT NULL and Primary Key
Allen.
>Hi all,3 Step process.
>
>I need to add a primary key to a table, the field that I wish to have as PK
>is not define as NOT NULL.
>
>How can I define a primary key and define this field as not null without
>losing data?
>
>Thanks
>Daniel
1) Add the field but declare as allowing NULL
2) Fill in the field for existign rows.
3) Change the field definition to NOT NULL and Primary Key
Allen.