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 :: first letter capital in mysql query 
Sql :: mssql get running queries 
Sql :: What is the compatibility level of a SQL database 
Sql :: SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1 
Sql :: oracle current timestamp insert statement 
Sql :: drop table if exists oracle 
Sql :: create table with primary key auto increment in sql 
Sql :: mysql copy table1 to table2 
Sql :: sqlite create index 
Sql :: how to change owner in postgres 
Sql :: how to move a columns location in mysql 
Sql :: postgres add superuser to database 
Sql :: drop table 
Sql :: sql query inline if 
Sql :: column names in oracle sql 
Sql :: import .sql into postgres db command 
Sql :: oracle create program if not exists 
Sql :: oracle new column 
Sql :: Step 1: Installing MySQL Client You can install MySQL client directly through pip using the command pip install mysqlclient 
Sql :: how to create an empty table from an existing table 
Sql :: oracle grant select on schema 
Sql :: postgres list all roles 
Sql :: this week mysql 
Sql :: restore postgres database from sql file 
Sql :: sql select data from last week 
Sql :: wordpress print query sql 
Sql :: mysql size of table 
Sql :: grant all privileges mysql 
Sql :: trim leading zeros in sql 
Sql :: can you update NULL in sql 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =