I’m trying to alter a table in Oracle. I have to give a column in a table a default value of 1. This is simple enough when making the table but I have to do it using the ALTER TABLE feature, This is what I have:
ALTER TABLE Stock_Qty
ADD CONSTRAINT Qty_DEFAULT_Value DEFAULT (Qty 1);
It doesn’t seem to work.
Here’s the correct syntax: