|
-
Dec 15th, 2003, 04:32 PM
#1
Thread Starter
Frenzied Member
Column
Hey,
Is it possible to change a column's Allow Nulls property after the table has been created?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Dec 15th, 2003, 04:35 PM
#2
ALTER TABLE tablename MODIFY columnname varchar(50) NULL;
-
Dec 16th, 2003, 05:44 AM
#3
Hyperactive Member
This will fail
if
you modify to not allow null
and
the column has already null value
-
Dec 16th, 2003, 07:03 AM
#4
Fanatic Member
Just update the column where it is null:
Code:
Update myTable
Set Field1 = 'SomeValue'
Where Field1 Is NULL
Then run mendhak's suggestion.
Chris
Master Of My Domain
Got A Question? Look Here First
-
Dec 16th, 2003, 09:27 AM
#5
Hyperactive Member
Thats true
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|