您的位置:程序门 -> db2 -> 数据库管理



db2中 view是如何定义的?在哪儿可以看到view有定义?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


db2中 view是如何定义的?在哪儿可以看到view有定义?[已结贴,结贴人:cuckoo1]
发表于:2007-09-24 16:15:28 楼主
我想看view的定义,它在哪里放着?
发表于:2007-09-25 08:39:511楼 得分:0
select   text  
from   sysibm.sysviews

c:\> db2   describe   table   sysibm.sysviews

column                                                   type             type
name                                                       schema         name                               length       scale   nulls

------------------------------   ---------   ------------------   --------   -----   -----
-
name                                                       sysibm         varchar                                   128           0   no

creator                                                 sysibm         varchar                                   128           0   no

check                                                     sysibm         character                                   1           0   no

text                                                       sysibm         clob                                 2097152           0   no

func_path                                             sysibm         varchar                                   254           0   no

valid                                                     sysibm         character                                   1           0   no

readonly                                               sysibm         character                                   1           0   no

definer                                                 sysibm         varchar                                   128           0   no

qualifier                                             sysibm         varchar                                   128           0   no

发表于:2007-09-26 09:08:162楼 得分:0
as/400上的db2,好象与nt/aix上的db2不同哟.   按以上方法找不到.
发表于:2007-09-26 09:56:173楼 得分:0
the   catalog   includes   the   following   views   and   tables   in   the   qsys2   library:
db2   udb   for   as/400   name   ansi/iso   name   description
sql_languages   sql_languages   information   about   the   supported   languages
syschkcst   check_constraints   information   about   check   constraints
syscolumns   columns   information   about   column   attributes
syscst   table_constraints   information   about   all   constraints
syscstcol   constraint_column_usage   information   about   the   columns   referenced   in   a   constraint
syscstdep   constraint_table_usage   information   about   constraint   dependencies   on   tables
sysfuncs   routines   information   about   user-defined   functions
sysindexes  
information   about   indexes
syskeycst   key_column_usage   information   about   unique,   primary,   and   foreign   keys
syskeys  
information   about   index   keys
syspackage  
information   about   packages
sysparms   parameters   information   about   routine   parameters
sysprocs   routines   information   about   procedures
sysrefcst   referential_constraints   information   about   referential   constraints
sysroutines   routines   information   about   functions   and   procedures
systables   tables   information   about   tables   and   views
systypes   user_defined_types   information   about   user-defined   types
sysviewdep   view_table_usage   information   about   view   dependencies   on   tables
sysviews   views   information   about   definition   of   a   view


快速检索

最新资讯
热门点击