选择视图或物化视图的创建脚本

时间:2013-10-22 12:19:21

标签: oracle select view materialized-views

我想要的:我想创建一个select语句,其中结果集有2列,视图名称和(blob,long,memo)视图的创建脚本

ie:从somesystemtable中选择viewname,viewscript,其中viewname如'%Numeric%Values'

viewname                 viewscript
------------------------------------------------
AlfaNumericValues        (memo, click to view)
DerivativeNumericValues  (memo, click to view)

1 个答案:

答案 0 :(得分:0)

对于Oracle,您必须这样做:

SELECT view_name, text
  FROM user_view
 WHERE view_name LIKE '%VIEWNAME%'; -- The name of the view in all capital letters.