创建表空间:
create tablespace test datafile 'd:\test.db' size 1000M autoextend on next 100M maxsize unlimited extent management local;
创建用户:
create user ta identified by ta default talbespace ta temporary tablespace temp quota unlimited on hsta;
用户授权:
grant dba, connect, resource, create table, create view to ta;
删除用户:
drop user ta cascade;
导入数据库备份:
imp ta/ta@demo file="d:\test.dbf" full=y ignore=y
数据库备份导出
exp ta/ta@demo file="d:\test.dbf" full=y ignore=y
查询系统日期和时间戳
select sysdate from dual; //系统日期
select systimestamp from dual; //系统时间戳
当oracle查询语句别名中有括弧等特殊字符时,使用双引号
select round(sum(nvl(f_confirmbalance,0)) /10000, 2) "金额(万元)" from table_A;
阅读(299) | 评论(0) | 转发(0) |