SchemaCrawler - Grep Example

Description

The grep example shows how to search a schema for tables and columns matching a regular expression.

How to Run

  1. Follow the instructions in the commandline example.
  2. To find tables with certain column names, run schemacrawler.cmd --server=hsqldb --database=schemacrawler --user=sa --password= --info-level=standard --command=details --no-info --grep-columns=.*\.PUBLISHER (use schemacrawler.sh instead of schemacrawler.cmd on Unix)
  3. To find routines with certain parameter names, run schemacrawler.cmd --server=hsqldb --database=schemacrawler --user=sa --password= --info-level=standard --command=schema --routines=.* --tables= --no-info --grep-parameters=.*\.B_ADDR (use schemacrawler.sh instead of schemacrawler.cmd on Unix)

How to Experiment

  1. Try grep for columns in tables that match a pattern.