I have a table called "downloads" with several thousand rows. I just added a column called is_completed using the following command:
ALTER TABLE downloads ADD is_completed BIT default 1 NOT NULL
Now I would like to change the default value for is_completed to 0 - I tried this command to no avail:
ALTER TABLE downloads MODIFY is_completed default 0
This does not work, he says that I have the wrong syntax next to the default. I can't seem to do this for the life of me. Does anyone know the correct syntax? I want all future rows added to this table to default to 0 if an explicit value is omitted.
sql database sybase default
jonjonjonjuice
source share