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

第20章:更新和删除数据

P140 

update customers set_emails='[email protected]' where cust_id=10005;

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

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

P141删除数据

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

猜你喜欢

转载自www.cnblogs.com/qiyuanjiejie/p/9451130.html