SchemaCrawler - Grep Example
Description
The grep example shows how to search a schema for tables and columns matching a regular expression.
How to Run
- Follow the instructions in the commandline example.
- 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
(useschemacrawler.sh
instead ofschemacrawler.cmd
on Unix) - 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
(useschemacrawler.sh
instead ofschemacrawler.cmd
on Unix)
How to Experiment
- Try grep for columns in tables that match a pattern.