久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      oracle數(shù)據(jù)修改語(yǔ)句是什么

      在oracle中,數(shù)據(jù)修改語(yǔ)句是update語(yǔ)句,該語(yǔ)句的作用就是修改表中指定的數(shù)據(jù),語(yǔ)法為“UPDATE 表名稱 SET 列名稱 = 新值 WHERE 條件”。

      oracle數(shù)據(jù)修改語(yǔ)句是什么

      本教程操作環(huán)境:Windows10系統(tǒng)、Oracle 11g版、Dell G3電腦。

      oracle數(shù)據(jù)修改語(yǔ)句是什么

      Oracle 中 update語(yǔ)句的用途是用于修改表中的數(shù)據(jù)。

      語(yǔ)法:

      UPDATE 表名稱 SET 列名稱 = 新值 <WHERE 條件>.

      如,數(shù)據(jù)庫(kù)中,test表數(shù)據(jù)如下:

      oracle數(shù)據(jù)修改語(yǔ)句是什么

      現(xiàn)在要將王五的名字改成王九,可用如下語(yǔ)句:

      update test set name='王九' where name='王五'; commit;

      執(zhí)行后結(jié)果:

      oracle數(shù)據(jù)修改語(yǔ)句是什么

      1、比如說(shuō)修改某列數(shù)據(jù),update studentinfo set studentsex='女' where studentid=1;select * from studentinfo。

      2、修改某幾列數(shù)據(jù),update studentinfo set studentname='李五',studentsex='女',studentage=15;where studentid=2;commit;select * from studentinfo。

      3、清空某幾個(gè)數(shù)據(jù),比如張山的sex,update studentinfo set studenttel=null where studentid=1;commit;select * from studentinfo。

      4、將所有數(shù)據(jù)中的age設(shè)置為女,update studentinfo set studentsex='女';commit。

      5、對(duì)表中的數(shù)據(jù)進(jìn)行想加運(yùn)算,將張山的年齡增加10歲,update studentinfo set studentage=studentage+10 where studentid=1;commit。

      6、對(duì)表中的數(shù)據(jù)進(jìn)行相乘運(yùn)算,將王五的年齡乘3歲,update studentinfo set studentage=studentage*3 where studentid=3;commit;select * from studentinfo。

      推薦教程:《Oracle視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)