【MySQL作业】DDL 和 DML——美和易思使用 DML 新增和更新表数据应用习题

点击打开所使用到的数据库>>>


1、添加 easyShopping 客户数据。

insert into customer 
values('abc111','111',' 刘一鸣 ',' 北京市朝阳区新源南路 14 号 ','13901212345');

2、将客户所在城市的名字的最后添加“市”,如“北京”更新为“北京市”,并且将客户电话的最前面加上中国电话国际代码“86”,如“1390×××2345”更新为“861390×××2345”

update customer set city=concat(city,' 市 '), phone= concat('86', phone);

 

>>知识点【第3章 DDL 和 DML】

 

posted @ 2020-04-25 16:27  明金同学  阅读(28)  评论(0编辑  收藏  举报