Samantha J T Star
Samantha J T Star

Reputation: 32778

How can I change the value of a column in a table to have a certain default value?

I have a table with a column that is of a character type.

Can someone tell me how I configure a certain constant default value after the table has already been created?

Upvotes: 0

Views: 29

Answers (1)

juergen d
juergen d

Reputation: 204756

To set n as default value do

ALTER TABLE your_table
ADD CONSTRAINT result_const DEFAULT 'n' FOR Result;

Upvotes: 3

Related Questions