美文网首页
2019-11-26_修改、删除

2019-11-26_修改、删除

作者: l_link | 来源:发表于2019-11-26 15:10 被阅读0次

1.修改表中指定数据

格式: update table  set  “字段” = “新” where + 条件

例如:update student set name = '张五' where id = 1

原表

执行后:

2.删除表中指定 行(整行数据都会删除)

格式: delete  from  table  where + 条件

例如:delete from student  where name = '张三'

原表:

执行后:

相关文章

网友评论

      本文标题:2019-11-26_修改、删除

      本文链接:https://www.haomeiwen.com/subject/ronewctx.html