首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

Oracle 查询全部表id大于10000的数据表名和数据

2013-02-18 
Oracle 查询所有表id大于10000的数据表名和数据-- 查询所有表id大于10000的数据以及对应表名称select sel

Oracle 查询所有表id大于10000的数据表名和数据
-- 查询所有表id大于10000的数据以及对应表名称select 'select id,'''||table_name||''' as tablename from '||table_name||' where id>=10000 union ' from user_tables;

?

-- 显示结果如下:select id,'AUTH_MEMBER_ROLE' as tablename  from AUTH_MEMBER_ROLE where id>=10000 union select id,'AUTH_ORGANIZATION' as tablename  from AUTH_ORGANIZATION where id>=10000 union select id,'AUTH_PERMISSION' as tablename  from AUTH_PERMISSION where id>=10000 union select id,'AUTH_PRODUCT' as tablename  from AUTH_PRODUCT where id>=10000 union select id,'AUTH_PRODUCT_ABOUT'as tablename  from AUTH_PRODUCT_ABOUT where id>=10000 union  select id,'AUTH_ROLE' as tablename  from AUTH_ROLE where id>=10000 union select id,'AUTH_USER' as tablename  from AUTH_USER where id>=10000 union   .........

?

热点排行