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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -