把xx替換成具體字符,如“深圳”,sql語句如下:
復制代碼 代碼如下:
select * from user_source t where instr(lower(t.text),'xx')>0;
select * from all_source t where t.owner<>'SYS' and instr(t.text,'××')>0;
如果是sql server數據庫,可以使用如下語句:
復制代碼 代碼如下:
select * from sysobjects where id in(
select id from syscomments where text like '%××%')