Date of creation of table in SQL

Dúvidas, dicas e truques de SQL, Select, Update, Delete, cláusulas, operações com joins, Funções em SQLs, etc
Post Reply
Reinaldommo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 3
Joined: Tue, 10 Jan 2017 9:04 am

Srs Good morning ..
Is there a way to pull in SQL the date of creating a table?


Thanks for the support.
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Yes.
You can use this query:

Select all

select OWNER, OBJECT_NAME, OBJECT_TYPE, CREATED, LAST_DDL_TIME 
from all_objects 
where object_name='CONTRACTS'
Query return:

Select all

OWNER                  OBJECT_NAME            OBJECT_TYPE         CREATED     LAST_DDL_TIME 
---------------------- ---------------------- ------------------- ----------- ------------- 
ASSET                  CONTRACTS              TABLE               10/29/2015  10/4/2016 2:3 
 
SQL> 
: -O
spernega
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 232
Joined: Tue, 19 Jun 2007 2:12 pm
Location: São Paulo - SP

Just remembering that if the base was created from an import, the creation date will be the date of import.
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Great observation spernega.
Reinaldommo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 3
Joined: Tue, 10 Jan 2017 9:04 am

Guys I only have to thank you ... Thank you very much.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests