Re: [GENERAL] Best way to allow column to initially be null?

2017-09-30 Thread Glen Huang
Good to know I’m not doing something stupid. Thanks. > On 30 Sep 2017, at 8:51 PM, Berend Tober wrote: > > Glen Huang wrote: > > I’m trying to make a column have these properties: > > > > 1. When a row is inserted, this column is allowed to be null. 2. When the > > row is

Re: [GENERAL] Best way to allow column to initially be null?

2017-09-30 Thread Berend Tober
Glen Huang wrote: > I’m trying to make a column have these properties: > > 1. When a row is inserted, this column is allowed to be null. 2. When the row is updated, no null > can be assigned to it this column. > > I initially thought I can drop the not null constraint before insertion and turn

[GENERAL] Best way to allow column to initially be null?

2017-09-30 Thread Glen Huang
Hi, I’m trying to make a column have these properties: 1. When a row is inserted, this column is allowed to be null. 2. When the row is updated, no null can be assigned to it this column. I initially thought I can drop the not null constraint before insertion and turn it back on after that,