Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle get ddl

-- 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 :: update value sql 
Sql :: add foreign key to existing table 
Sql :: get all employee of salary if more than in sql 
Sql :: remove last characters in mysql 
Sql :: truncate table sqlite 
Sql :: SQL Error [42501]: ERROR: permission denied for table 
Sql :: increment id in mysql 
Sql :: from . import _mysql ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory linux 
Sql :: sql script to remove default from column 
Sql :: sql remove check constraint 
Sql :: 0 
Sql :: insert into sql 
Sql :: difference between outer join and inner join sql 
Sql :: oracle sql unique 
Sql :: sql join on a subquery 
Sql :: copy a table mysql 
Sql :: multiple order by sql 
Sql :: dublicate row sql 
Sql :: mysql mediumtext 
Sql :: alter boolean column postgresql 
Sql :: double in sql server example 
Sql :: control files oracle 
Sql :: ORACLE sql join multiple tables 
Sql :: postgres stored procedure 
Sql :: mysql workbench format date 
Sql :: Caused by: java.lang.RuntimeException: Unable to obtain credentials to communicate with the Cloud SQL API 
Sql :: oracle list user locked 
Sql :: python sqlalchemy orm to select null values 
Sql :: collation in sql 
Sql :: Host ' is not allowed to connect to this MySQL server 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =