There is such a table with a DateTime CreationDate field. I want the value to be written to this field only when a new record is added to the database and that this field cannot be NULL . How can I do that?
|
There is such a table with a DateTime CreationDate field. I want the value to be written to this field only when a new record is added to the database and that this field cannot be NULL . How can I do that?
Source: https://ru.stackoverflow.com/questions/605221/
All Articles
Default Value or Binding = (getdate())&Allow Nulls = No- AnatolAllow Nulls - Nothen I am obliged to write the value in this field myself? - Lightnessinsert into table1 () values ()should not be CreationDate and fields should be specified. - nick_n_a