首页| 论坛| 消息
主题:外键索引检查的SQL
cai发表于 2010-02-25 08:44
-- 查询没有建立索引的的外键字段 并生成 创建索引语句
select lower('create index ' || 'idx_' || x.c || ' on ' || x.t || '(' || x.c || ');') sqls
  from (
       
        select c.table_name  t,
                c.column_name c
          from user_cons_columns c,
        
下一页 (1/7)
回帖(0):

全部回帖(0)»
最新回帖
收藏本帖
发新帖