Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQLPLUS, Date Type question

Re: SQLPLUS, Date Type question

From: Marc Mazerolle <informaze_at_sympatico.ca>
Date: Mon, 14 Jun 1999 20:06:09 GMT
Message-ID: <3765620F.89CC2FF7@sympatico.ca>


Try this :

select owner,table_name
  from all_tables t
 where exists

       (select 1
          from all_tab_columns c
         where c.owner = t.owner
           and c.table_name = t.table_name
           and c.data_type = 'DATE')

but if you are a serious Y2K tester.... try this also :

select owner,table_name
  from all_tables t
 where exists

       (select 1
          from all_tab_columns c
         where c.owner = t.owner
           and c.table_name = t.table_name
           and (c.column_name like ('%DATE%') or
                c.column_name like ('%DT%')
               )
           and c.data_type != 'DATE'
        )

;-)

lcampbell7272_at_my-deja.com wrote:

> I am a Y2K tester, and I am trying to find an
> SQLPLUS command to list all the field where the
> Data Type is equal to 'DATE', from ALL_TABLES.
> Does anyone know the command in order to
> retrieved the desired information.
>
> Thanks,
> Y2K Tester
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Mon Jun 14 1999 - 15:06:09 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US