`
redloves
  • 浏览: 21078 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

数据库开发

 
阅读更多

--建立数据库表空间

create tablespace abc

    logging 

    datafile 'F:\oracle\db\orcl\DATAFILE\ABC.ORA' size 300M extent

    management local segment space management auto;


--建立数据库用户

create user abc identified by abc default tablespace abc temporary tablespace temp;

grant connect,resource,dba to abc;


--用abc用户连接

connect abc/abc@orcl;


查询特定时间的数据,只要表没有truncate就能查询到值。

select * from eaa1 as of timestamp to_timestamp('2011-04-12 17:00','yyyy-mm-dd hh24:mi:ss')

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics