Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get ddl materialized view oracle

-- 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 :: ddl materialized view 
Sql :: sql count columns 
Sql :: substr sql last character 
Sql :: oracle pl/sql prevent sql injection 
Sql :: select insert new table sql server 
Sql :: sql get guid 
Sql :: sql server query list all databases 
Sql :: dbms_output.put_line 
Sql :: insert current timestamp in postgresql 
Sql :: access the postgres psql 
Sql :: add created and updatedAt fields in mysql 
Sql :: mysql best varchar length size 
Sql :: drop table sql 
Sql :: copy one column data to another in sql 
Sql :: Columns Present in a table 
Sql :: get table column names sql laravel 
Sql :: python mysql search 
Sql :: oracle add column with default value 
Sql :: copy sql table to new table 
Sql :: create table sql 
Sql :: oracle grant on all tables in schema 
Sql :: convert to hexadecimal sql 
Sql :: oracle add proxy 
Sql :: how to reset table in sql server 
Sql :: get last week data in mysql 
Sql :: mysql check auto increment value 
Sql :: show column from sql server 
Sql :: postgres database sizes 
Sql :: remove binlog mysql 
Sql :: date formats in sql server 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =