SQL> column sysdate format a30
SQL> select sysdate from dual;
SYSDATE
------------------------------
12-10-2009 14:35:33
SQL> create table teste as (select * from dba_objects);
Table created
SQL> select count(*) from teste;
COUNT(*)
----------
49788
SQL> create or replace view vw_teste as select * from teste where to_char(sysdate,'HH24') between 17 and 18;
View created
SQL> select count(*) from vw_teste;
COUNT(*)
----------
0
SQL> select sysdate from dual;
SYSDATE
------------------------------
12-10-2009 14:35:33
SQL> create table teste as (select * from dba_objects);
Table created
SQL> select count(*) from teste;
COUNT(*)
----------
49788
SQL> create or replace view vw_teste as select * from teste where to_char(sysdate,'HH24') between 17 and 18;
View created
SQL> select count(*) from vw_teste;
COUNT(*)
----------
0
Comentários
Postar um comentário