zoukankan      html  css  js  c++  java
  • 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 表示在某个数据库下创建了表。

      

      

  • 相关阅读:
    (JS/JQ)与Ajax
    JS与JQ的DOM处理
    正则表达式
    JS事件大全
    CSS(初级)学习笔记
    HTML学习笔记
    leetcode记录——65. 有效数字
    dp专题
    Hackerrank---A stones game
    组合博弈问题
  • 原文地址:https://www.cnblogs.com/zmc60/p/15308873.html
Copyright © 2011-2022 走看看