【正文】
)insert into default_example(pid,names,age) values(201,39。馬山 39。,20)select * from default_example216。用 alter table添加或刪除默認值例: alter table default_exampleReplace age default 19alter table default_exampleadd pid1 int default 101216。默認和默認值的使用限制? 每列只能有一個默認綁定,且值與綁定的數(shù)據(jù)類型一致,與該列的規(guī)則一致? 解除綁定后才可刪除。216。在 UPDATE中使用默認值Update default_exampleSet sex=defaultWhere age=18216。查看規(guī)則和默認select name from sysobjects where type in(39。r39。,39。d39。)列出某個數(shù)據(jù)庫中的所有規(guī)則和默認查看與表中列有關的規(guī)則和默認 sp_help四、約束含義:限制了用戶可能輸入到表或字段中的值Primary key ,unique,foreign key,check,default定義: create table和 alter table分為表級約束和字段級約束