![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据运维
文章平均质量分 70
Appoint_J
软件实施/IT运维/技术支持/项目管理
展开
-
DB2常用命令
打开操作命令中心 cmd=>db2cmd 或 WIN+R=>db2cmd 创建数据库 db2 create db [数据库名称] 连接至数据库 db2 connect to [数据库名称] user [用户名] using [密码] 断开连接 db2 connect reset 查询语句 db2 "select [条目] from [表名] where [原创 2017-05-03 10:02:22 · 335 阅读 · 0 评论 -
Oracle 学习笔记(一)
1、查看当前登录用户 show user dba_users; 2、启用scott用户 alter user scott account unlock; 3、修改表空间的状态(联机/脱机) alter tablespace tablespace_name online(默认)/offline; 4、修改表空间的状态(只读/读写) alter tablespace tablesp原创 2017-12-04 13:07:22 · 185 阅读 · 0 评论 -
Oracle学习笔记 (二)
1、创建表 create table table_name (column1 datatype, column2 datatype, ... ... ) 例: create table userinfo ( id number(6,0), username vachar2(20), userpwd vachar2(20), email vachar2(30), reg原创 2017-12-06 10:28:23 · 222 阅读 · 0 评论 -
Oracle 学习笔记(三)
约束: 定义规则,确保数据完整性、规范性 1、非空约束 注意:非空约束尽可以列级添加,不可表级添加 在创建表时添加非空约束 create table table_name (column1 datatype not null, ... ...); 在修改表时添加非空约束 alter table table_name modify column1 datatype not nu原创 2017-12-08 08:29:35 · 212 阅读 · 0 评论 -
Oracle初始环境中创建第一个数据库
--一、创建表空间 create tablespace dbsp_1 datafile 'D:\database\datafile1.dbf'--设置名称、位置(必须保证为已存在的位置) size 10m--设置大小 extent management local autoallocate;--当表空间大小已满时,用自动管理的方式扩展表空间 --或 extent management local原创 2018-01-25 11:39:35 · 350 阅读 · 0 评论