search entire oracle database for part of string

前端 未结 2 1017
孤城傲影
孤城傲影 2021-01-27 12:07

I\'m trying to find a specific string in an entire Oracle database.

I\'ve followed the example in another topic on here (Search All Fields In All Tables For A Specific

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-27 12:35

    Change it to

    EXECUTE IMMEDIATE
      'SELECT COUNT(*) FROM ' || t.owner || '.' || t.table_name ||
      ' WHERE '||t.column_name||' like :1'
      INTO match_count
      USING '%ALERT%';
    

提交回复
热议问题