-
创建表空间查看全部
-
desc userinfo alter table userinfo add remarks varchar2(500); desc userinfo alter table userinfo modify remarks varchar2(300); alter table userinfo modify userpwd number(6,0); desc userinfo alter table userinfo drop column remarks; alter table userinfo rename column email to new_email; rename userinfo to new_userinfo; desc new_userinfo查看全部
-
设置用户默认表空间和临时表空间查看全部
-
字符型 char nchar 固定长度格式 varchar2 nvarchar2,可变长度格式 数值型: number(有效数字,小数点后的位数) number(5,2)---123.45 float(n) 日期型 DATE--精确到秒 TIMESTAMP--精确到小数秒 其他类型 BLOB--二进制存放4GB字节数据 CLOB--字符串存放4GB字节数据查看全部
-
记录 域和字段查看全部
-
drop tablespace gump_tablespace including contents;查看全部
-
alter tablespace gump_tablespace add datafile 'hehe_file.dbf' size 10M; select file_name from dba_data_files where tablespace_name='GUMP_TABLESPACE'; 原有一个创建时的数据文件,创建后即有新的数据文件,不可删除第一个; alter tablespace gump_tablespace drop data datafile 'hehe_file.dbf';查看全部
-
表空间:状态+数据文件 alter tablespace gump_tablespace offline; desc dba_tablespaces select status from dba_tablespaces where tablespace_name='GUMP_TABLESPACE'; alter tablespace gump_tablespace online; 以上是联机/脱机状态 在联机状态下可修改只读/读写状态 alter tablespace gump_tablespace read only; select status from dba_tablespaces where tablespace_name='GUMP_TABLESPACE'; alter tablespace gump_tablespace read write; 默认是读写状态。查看全部
-
可创建永久表空间和临时表空间 CREATE tablespace gump_tablespace datafile 'gump1file.dbf' size 10M; CREATE temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10M; desc dba_data_files select file_name from dba_data_files where tablespace_name='GUMP_TABLESPACE'; select file_name from dba_temp_files where tablespace_name='TEMPTEST1_TABLESPACE'; 新的数据字典,dba_data_files查看全部
-
数据库--表空间--数据文件 永久表空间:数据库中要永久存储的对象,表、视图 临时表空间:中间执行的过程存储,执行完后释放空间 UNDO表空间:保存数据被修改的旧值,确保可执行撤销操作查看全部
-
decode函数,作用类似case..when语句: select username,decode(username,'aaa','计算机部门','bbb','市场部门','其他') as 部门 from users;查看全部
-
case...when的第二种形式使用查看全部
-
case when 的第二种形式查看全部
-
如何使用case..when查看全部
-
case when语句查看全部
举报
0/150
提交
取消