2.oralce的简单sql实例

1.前言

  比较一下oracle的语句与mysql语句的区别

create use test identified by test tablespace users;
grant dba to test;
connect test/test;
create table t(id int,name varchar(20));
insert into t values(1,'liulin');
update t set name='haha' where id =1;
delete from t where id=1;
drop table t;
drop user test;

2.比较

  从上面看出对于oracle与mysql的区别不是很大,但是由于oracle是表空间的管理模式,因此需要在创建用户的时候指定表空间,在创建表的时候,需要进行指定的用户,这样才能创建表,

这里和Mysql有很大的区别,因此在mysql中使用use database --> create table 表示在某个数据库下创建了表。

  

  

原文地址:https://www.cnblogs.com/zmc60/p/15308873.html