2008 SQL sever 实列教程 课堂实践.docVIP

  • 222
  • 0
  • 约 12页
  • 2017-01-06 发布于重庆
  • 举报
第四章 课堂实践3 p89 2.将姓名为“吴波”的会员名修改为“吴海波” update customers set c_TrueName=吴海波 where c_TrueName=吴波 3.将所有籍贯为“湖南株洲”的会员的邮政编码改为“412000” update customers set c_Postcode=412000 where c_Address=湖南株洲市 4.将所有会员的密码初始化为“1234” update customers set c_Password=1234 where c_Type=VIP 5.删除1988年出生的会员信息 delete from customers where year(c_Brith)=1988 课堂实践4 p95 2.2为customers设置default(默认值),用户类别c_type默认为普通用户 alter table customers add constraint c_Type default 普通用户 for c_Type(好像是多余的) 3.2为customers设置check约束,身份证号只能为15位或18位 alter table customers add constraint c_CardID check(len(c_CardID)=15 or len(c_CardID)=18) 3.3为custo

文档评论(0)

1亿VIP精品文档

相关文档