车晓 离婚,诸康妮微博,调教小游戏
update 语句用于修改表中的数据。
update 表名称 set 列名称 = 新值 where 列名称 = 某值
lastname | firstname | address | city |
---|---|---|---|
gates | bill | xuanwumen 10 | beijing |
wilson | champs-elysees |
我们为 lastname 是 "wilson" 的人添加 firstname:
update person set firstname = 'fred' where lastname = 'wilson'
lastname | firstname | address | city |
---|---|---|---|
gates | bill | xuanwumen 10 | beijing |
wilson | fred | champs-elysees |
我们会修改地址(address),并添加城市名称(city):
update person set address = 'zhongshan 23', city = 'nanjing' where lastname = 'wilson'
lastname | firstname | address | city |
---|---|---|---|
gates | bill | xuanwumen 10 | beijing |
wilson | fred | zhongshan 23 | nanjing |
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
数据库SQL---数据库、基本表、视图、索引的定义、修改、删除
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (上)
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (下)
网友评论