Search
 
SCRIPT & CODE EXAMPLE
 

SQL

dbms_metadata.get_ddl table

-- 4000 characters max
SELECT dbms_metadata.get_ddl('PROCOBJ', 'job_name', 'owner') FROM DUAL;
SELECT dbms_metadata.get_ddl('PROCOBJ', 'program_name', 'owner') FROM DUAL;
SELECT dbms_metadata.get_ddl('TABLE', 'table_name', 'owner') FROM DUAL;
SELECT dbms_metadata.get_ddl('VIEW', 'view_name', 'owner') FROM DUAL;

SELECT dbms_metadata.get_ddl('PACKAGE', 'pkg_name', 'owner') FROM DUAL; 
SELECT dbms_metadata.get_ddl('PROCEDURE', 'proc_name', 'owner') FROM DUAL; 

SELECT dbms_metadata.get_ddl('INDEX', 'index_name', 'owner') FROM DUAL;
SELECT dbms_metadata.get_ddl('TYPE', 'type_name', 'owner') FROM DUAL;
Comment

PREVIOUS NEXT
Code Example
Sql :: Add new column T-SQL 
Sql :: smallint sql 
Sql :: sql latlng 
Sql :: postgres extract date from timestamp 
Sql :: nth highest salary in sql 
Sql :: oracle show errors 
Sql :: check if word is in column sql 
Sql :: mysql dump for selected row 
Sql :: mysql composite primary key 
Sql :: postgresql create table as select 
Sql :: create table postgresql 
Sql :: how to find total working hour in sql 
Sql :: create table with float datatype in sql server 
Sql :: sql to linq 
Sql :: mysql delete from where like 
Sql :: sql group by example 
Sql :: what is relational database 
Sql :: oracle undo tablespace list by user 
Sql :: how to find max and min salary in sql 
Sql :: export mysql database command line 
Sql :: alter table drop partition hive 
Sql :: xampp mysql command to import a large database 
Sql :: timestamp datatype in sql 
Sql :: create a table in sql 
Sql :: update join 
Sql :: sql use with to get value counts and percentages 
Sql :: grant select mysql 
Sql :: case vhdl 
Sql :: memberikan password root mysql 
Sql :: how to check current root password in mysql 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =