oracle資料庫語言(2)----資料操作語言

來源:互聯網
上載者:User

標籤:刪除   rom   儲存   oracle   --   update   color   let   val   

 1 DML(資料操縱語言)Data Manipulation Language 2         用於增、刪、改 資料庫中的資料 3         常伴隨著TCL(事物操作語言)----commit(儲存);rollback(復原); 4       create table stu( id number(5),  name char(12) );           5  6  1.向表中插入資料; 7      insert into stu (id ,name) values(1,‘秦舞陽‘);----第一種寫法 8      insert into stu values(2,"孫悟空"); ----第二種寫法(簡潔版) 9     commit; -----儲存操作10 2.刪除表中的資料;11     delete from stu where id="1";---刪除stu表裡符合where條件的資料,不寫where條件則全刪;12 3.更改表中的資料13     update stu set name=‘齊天大聖‘ where id="2"; ---將id=2的名字改為‘齊天大聖’14     15     16     17 18 19 20            

 

oracle資料庫語言(2)----資料操作語言

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.