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

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

  • 相关阅读:
    PL/SQL 记录集合IS TABLE OF的使用
    PL/SQL 触发器简介
    plsql 显式游标
    MySQL的基本知识 -- 命令
    排序算法--桶排序
    在C++中实现字符串分割--split
    第一篇献给小驰驰
    解决windows管理员已阻止你运行此应用问题
    centos 7.3 快速安装ceph
    python中int的功能简单介绍
  • 原文地址:https://www.cnblogs.com/hongten/p/hongten_oracle_have_a_try.html
Copyright © 2011-2022 走看看