On this page

FIND COLUMN

Core command FI COL FICOL SHOW COLUMN SH COL SHCOL

Finds the columns, and their tables, whose name contains the text you type, in the whole database.

Syntax

FIND COLUMN <text>

Arguments

ArgumentRequiredValuesDefault
<text>YesA column name or part of it; % matches any textNone

Examples

FIND COLUMN COUNTRY_ID;
FIND COLUMN EMAIL;

Details

Matching

The text is searched inside column names, as typed: it is not converted to upper or lower case, so whether the search ignores case depends on the database. % matches any text and _ any single character. The search covers the whole database, not one schema or table: every column whose name contains the text is listed, with its table. The command fails when no text is given.

Older names

SHOW COLUMN, SH COL and SHCOL still work: they run the same command. FIND COLUMN is the recommended name, since the command finds tables by one of their column names. New scripts should use it.

Used in these how-tos

Last modified in release 5.5.0.

Found something wrong or unclear on this page? , with the page address.