12、MYSQL改 -------- update

~~~~~~~

1、update   修改数据

    语法:

      update   表名  set  栏位名 = 新值   where   条件

 

    作用:

      修改数据表中的数据库

    

    举例说明:

        有 Store_Information 

        

 

     1)把 store_name = LOL的数据改为

      store_name   =  test

      sales  =  1234

 

    语句:

      update  Store_Information   set   store_name  =  'test',  sales  =  1234  where  store_name  =  'LOL'

    再次查询结果为:

      

    从上面可以看出 LOL 改为 test , sales  改为了1234 

posted @ 2020-05-07 11:14  贫僧法号-->乱来  阅读(121)  评论(0编辑  收藏  举报