现在我们可以在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
========================================================