Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ddl view

-- 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 :: oracle view ddl 
Sql :: psql: error: FATAL: role "postgres" does not exist 
Sql :: list index mysql cli 
Sql :: get parameter value in mysql trigger 
Sql :: sql primary key with multiple columns 
Sql :: mysql case when null 
Sql :: how to describe a table in sqlite3 
Sql :: how to install mysql server on centos 7 
Sql :: return sql query laravel 
Sql :: how to install sqlite3 python 
Sql :: sql last week 
Sql :: mysql repair a table 
Sql :: delete table sql 
Sql :: how to print longest name in sql 
Sql :: postgres list tables and row counts 
Sql :: how to add not null constraint in sql 
Sql :: sql myisam vs innodb 
Sql :: mysql trim whitespace 
Sql :: create table mysql 
Sql :: list foreign data tables postgres psql 
Sql :: SQLite order random 
Sql :: getting next sequence value jpa postgress 
Sql :: oracle current date minus 1 day 
Sql :: sql server: select column values as comma separated string 
Sql :: make a field auto_increment mysql 
Sql :: ajouter une clé etrangere mysql 
Sql :: brew start postgres manual 
Sql :: add column not null with default value postgres 
Sql :: sql where contains 
Sql :: sql not null 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =