美文网首页
更新修改数据

更新修改数据

作者: 孤岛渔夫 | 来源:发表于2017-01-22 16:16 被阅读0次
    -- 更新(修改)数据
-- update  表名  set  字段名1 = 字段值1, 字段名2 = 字段值2 .... 字段名N= 字段值N where 条件表达式

update student set sex=1 where id=3;
update student set sex=2,age=18 where id>3;



相关文章

网友评论

      本文标题:更新修改数据

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