《mysql必知必会》学习_第20章

第20章:更新和删除数据

P140 

update customers set_emails='elmer@fudd.com' where cust_id=10005;

 更新多个列,用逗号隔开。注意被指定的词有引号,null不用引号。

#为什么cust_name不能是空值# ##删除一个列,把一个列的值改为空值##

 

P141删除数据

select from customers where cust_id=10006; #删除cust_id=10006的的行所有信息#

 

posted @ 2018-08-09 19:10  张三疯了  阅读(78)  评论(0编辑  收藏  举报