With the following SELECT
I see all the tables of a user:
SELECT table_name FROM all_tables where owner='usuario1'
Result:
TABLE_NAME
----------
USUARIOS
PRODUCTOS
CLIENTES
...(+300 tablas)
And with the sentence describe
I see the structure of a table:
describe productos;
Result:
PRODUCTOS
Nombre Nulo Tipo
-------------------- -------- --------------
id_productos NOT NULL NUMBER(5)
nombre_producto VARCHAR2(255)
...
How could I unite these two functionalities?
I need to get the structure of all the tables which is almost 400 tables.
For this you can use
dmbs_metadata.get_ddl
: