sql - Alter table query in MS Access 2007 -
i want ms access query can add column current table. query should include not null
constraint, default
value ''
i.e. 2 single quotes , data type.
i tried query in access 2007 not working:
alter table demo add column lname text not null default ('')
alter table {tablename} add {columnname} {type} {null|not null} constraint {constraint_name} default {default_value}
or try
alter table testtable add newcol varchar(50) constraint df_testtable_newcol default '' not null go
Comments
Post a Comment