Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle export trigger ddl

SELECT DBMS_METADATA.get_ddl('TRIGGER', TRIGGER_NAME, OWNER)
FROM ALL_TRIGGERS		-- or DBA_TRIGGERS, USER_TRIGGERS
WHERE OWNER = 'swhema_name'
  AND TRIGGER_NAME = 'trigger_name';
Comment

oracle export view ddl

-- Views (use USER_VIEWS or DBA_VIEWS if needed):
SELECT TEXT FROM ALL_VIEWS WHERE upper(VIEW_NAME) LIKE upper('%VIEW_NAME%');
-- Or:
SELECT dbms_metadata.get_ddl('VIEW', 'VIEW_NAME', 'OWNER_NAME') FROM DUAL;

-- Materialized views (use USER_VIEWS or DBA_VIEWS if needed):
SELECT QUERY FROM ALL_MVIEWS WHERE upper(MVIEW_NAME) LIKE upper('%VIEW_NAME%');
-- Or:
SELECT dbms_metadata.get_ddl('MATERIALIZED_VIEW', 'VIEW_NAME', 'OWNER_NAME') 
FROM DUAL;
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres truncate with cascade 
Sql :: sql change password wordpress 
Sql :: postgres check timezone 
Sql :: postgresql select as and fwhwere by this field 
Sql :: oracle check numeric 
Sql :: insert postgres 
Sql :: python how to connect to sql server 
Sql :: postgresql division count return 0 
Sql :: mysql add comment to column 
Sql :: sql server pagination 
Sql :: mysql select from outside 
Sql :: mysql server is not starting xampp 
Sql :: postgresql transaction discard all 
Sql :: mssql cursor 
Sql :: mysql copy table1 to table2 
Sql :: mysql drop trigger 
Sql :: alter table change default 
Sql :: How Not To Sort By Average Rating 
Sql :: sql query inline if 
Sql :: postgresql get year 
Sql :: remove transient options sql wordpress 
Sql :: mysql select month and year 
Sql :: sql create table with datetime automatically 
Sql :: oracle list privileges 
Sql :: oracle tablespace datafile max size 
Sql :: sql select divide column by number 
Sql :: sql show tables 
Sql :: tsql cmd exec script from file 
Sql :: how to create table in sql 
Sql :: python sqlite3 prepared statement 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =