zoukankan      html  css  js  c++  java
  • oracle系列--第六篇 Oracle上面小试牛刀

    现在我们可以在oracle上面进行创建表,向表中插入数据,修改表中数据,删除数据,甚至删除表等一系列操作。

    即我们所说的CRUD操作。

     1 --create a table which name is t_hongten_student
     2 create table t_hongten_student(
     3        name varchar(20),
     4        age number(3)
     5 );
     6 
     7 --insert some data into table
     8 insert into t_hongten_student values('Hongten', 19);
     9 insert into t_hongten_student values('红藤', 20);
    10 insert into t_hongten_student values('Hanyuan', 18);
    11 
    12 --query table
    13 select * from t_hongten_student;
    14 
    15 --amend the data
    16 update t_hongten_student set name = 'Meters Bonwe', age = 23 where name = 'Hanyuan' and age = 18;
    17 
    18 select * from t_hongten_student;
    19 
    20 --delete the data
    21 delete from t_hongten_student where name = '红藤' and age = 20;
    22 
    23 --delete the table
    24 drop table t_hongten_student;

    从现在开始,我们就开始进入oracle的操作阶段了.......

    ========================================================

    More reading,and english is important.

    I'm Hongten

     

    大哥哥大姐姐,觉得有用打赏点哦!多多少少没关系,一分也是对我的支持和鼓励。谢谢。
    Hongten博客排名在100名以内。粉丝过千。
    Hongten出品,必是精品。

    E | hongtenzone@foxmail.com  B | http://www.cnblogs.com/hongten

    ========================================================

  • 相关阅读:
    OOP & Pointer: Segment Tree
    ICPC_2020 上海站
    Notes: Kirchhoff's Matrix 基尔霍夫矩阵
    CS61A Homework: Church Numerals
    题解:[COCI2011-2012#5] BLOKOVI
    题解:SDOI2017 新生舞会
    题解:POI2012 Salaries
    题解:洛谷P1357 花园
    题解:CF593D Happy Tree Party
    题解 P2320 【[HNOI2006]鬼谷子的钱袋】
  • 原文地址:https://www.cnblogs.com/hongten/p/hongten_oracle_have_a_try.html
Copyright © 2011-2022 走看看