zoukankan      html  css  js  c++  java
  • SQL查找存储过程,列名,表,方法,字符串中匹配的字符串

    --select string using in procedure
    select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
    where b.xtype='P' and a.text like '%USP_FOUNDATIONUPDATE%'
    
    
    --select columns name
    select b.name as Table1, a.name as Columns1,a.type  from syscolumns a left join sysobjects b on b.id=a.id
    where b.xtype='u' and a.name like '%season%'
    
     
    
    --select table name
    select name from sysobjects where xtype='u' and name like '%habit%'
    
    
    --select string using in function
    select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
    where b.xtype='fn' and a.text like '%Fn_GetIR%'
    
    
    --select string using in view
    select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
    where b.xtype='V' and a.text like '%vw_species%'
    
    	
    

      

  • 相关阅读:
    [NOI2014]动物园
    2018.7.15模拟赛
    2018.7.13模拟赛
    [CodeForces]920F SUM and REPLACE
    [BZOJ3211]花神游历各国
    [GSS5] Can you answer these queries V
    [SPOJ1716] GSS3
    [HNOI2012]排队
    2018.7.10模拟赛
    7.3模拟赛
  • 原文地址:https://www.cnblogs.com/Aaron-Lee/p/9252966.html
Copyright © 2011-2022 走看看