静态定义表(没有ITEM_KEY,因为ITEM_KEY代表一个wf实例) --获取item_type定义. SELECT * FROM wf_item_types t WHEREt.name= 'CUX_TEST'; /*查询指定ITEM_TYPE中新建的activitie定义(没有activity的id).*/ SELECT * FROM wf_activities_tlt WHERE t.item_type= 'CUX_0005' AND t.version= 1; /*查询指定PROCES
Oracle根据主键获取对应表 select * from user_constraints a, USER_CONS_COLUMNS b where a.CONSTRAINT_TYPE = 'P' and a. constraint_name = b.constraint_name and a.constraint_name = 'PK151'; --根据主键名查询表(PK151为主键名称) Oracle根据外键获取相关表 select * from user_constraints cc w
--判断数据库是否有相关表 if exists (select 1 from sysobjects where id = object_id(' 表名 ') and type = ' U ' ); --判断数据库是否有相关字段 if exists (select 1 from syscolumns where id=OBJECT_ID(' 表名 ') and name = ' 字段名 ');
来源于:http://www.itpub.net/thread-513609-1-1.html http://bbs.csdn.net/topics/330251089 http://blog.csdn.net/rznice/article/details/6107650 1.首先要得到USERS01.DBF的file_idSELECT file_name,file_id FROM dba_data_files WHERE file_name like '%USER%';2.统计这个数据文件有哪