![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
isjun26
这个作者很懒,什么都没留下…
展开
-
oracle创建表空间
表空间,oracle数据库的逻辑单元,一个表空间可以与多个数据文件(物理结构)关联,一个数据库下可以建立多个表空间,一个表空间可以建立多个用户,一个用户下可以建立多个表。create tablespace jundatafile 'c:\jun.dbf'size 100mautoextend onnext 10m;itcast 为表空间名称datafile 指定表空间对应的数据文件si...原创 2018-04-30 15:38:38 · 197 阅读 · 0 评论 -
oracle创建用户和用户授权
1、创建用户create user jun0326identified by jun0326default tablespace jun identified by 后边是用户的密码 default tablespace 后边是表空间名称 oracle 数据库与其它数据库产品的区别在于,表和其它的数据库对象都是存储在用户下的。2、用户授权grant dba to jun032...原创 2018-04-30 15:45:45 · 428 阅读 · 0 评论 -
oracle创建表、修改表、删除表
1、创建表create table person( pid number(10), name varchar2(10), gender number(1) default 1, birthday date);2、修改表添加语法:alter table 表名称 add(列名1 类型 [default 默认值],列名2 类型 [default 默认值]);修改语法:alter table 表...原创 2018-04-30 15:58:51 · 1152 阅读 · 0 评论 -
oracle约束
1、主键约束create table person( pid number(10) primary key, name varchar2(10), gender number(1) default 1, birthday date); 系统帮我们指定主键名字 create table person( pid number(10), gender numb...原创 2018-04-30 16:20:01 · 117 阅读 · 0 评论 -
oracle数据库的数据类型
原创 2018-04-30 16:31:30 · 141 阅读 · 0 评论 -
oracle插入数据、更新数据、删除数据
1、插入数据insert into 表名(列名1,列名2,列名3...)values(值1,值2,值3...);2、更新数据全部修改:update 表名 set 列名1 = 值1,列名2 = 值2;局部修改:update 表名 set 列名1= 值1,列名2 = 值2 where 修改条件;3、删除数据delete from 表名 where 删除条件;truncate table 表名;tru...原创 2018-04-30 17:58:03 · 667 阅读 · 0 评论 -
oracle数据导出与导入命令
1、整库导出命令exp system/jun0326 fully=ysystem表示用户 jun0326表示密码 fully=y表示整库导出2、整库导出指定文件位置exp system/jun0326 file=C:\jun.dmp fully=y 3、整库导入imp system/jun0326 fully=yimp system/jun0326 file=C:jun.dmp fully=y...原创 2018-06-27 11:37:28 · 288 阅读 · 0 评论