On executing the following SQL query
alter table tablename add columnname boolean not null default false;
I got the following error message:
The name "false" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
How should I fix this? Suggestions?
The column type should be a
bitfield.In SQL you use
0and1to set abitfield. The values are displayed in SQL Server Management Studio asfalseortrue, corresponding to0and1.