encyclopegia.org

Expression index

Within computing and computer science, an expression index, also known as a function based index, is a database index that is built on a generic expression, rather than one or more columns. This allows indexes to be defined for common query conditions that depend on data in a table, but are not actually stored in that table. A common use for an expression index is to support case-insensitive searching or constraints. For example, if a web site wants to make user names case-insensitive, but still preserve the case as originally entered by the user, an index can be created on the lower-case representation of the user name: : CREATE INDEX users__last_name_lower ON users( lower( last_name ) ); That will create a unique index on "lower(last_name)". Any queries that search on "lower(last_name)" could then make use of that index: : SELECT user_id FROM users WHERE lower( last_name ) = lower( 'Smith' );

Within computing and computer science, an expression index, also known as a function based index, is a database index that is built on a generic expression, rather than one or more columns. This allows indexes to be defined for common query conditions that depend on data in a table, but are not actually stored in that table. A common use for an expression index is to support case-insensitive searching or constraints. For example, if a web site wants to make user names case-insensitive, but still preserve the case as originally entered by the user, an index can be created on the lower-case representation of the user name: CREATE INDEX users__last_name_lower ON users( lower( last_name ) ); That will create a unique index on "lower(last_name)". Any queries that search on "lower(last_name)" could then make use of that index: SELECT user_id FROM users WHERE lower( last_name ) = lower( 'Smith' ); ==Database support== Major databases which support expression indexes include: IBM Db2 (since version 10.5 ), Oracle Database (since release 8i. ) and PostgreSQL (since at least version 7 ). ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Expression index." encyclopegia.org, 2022, https://encyclopegia.org/wiki/expression-index. Accessed 25 November 2026.

Chicago

"Expression index." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/expression-index.

APA

encyclopegia.org. (2022). Expression index. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/expression-index

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Index Librorum Prohibitorum

stub · references available

Roud Folk Song Index

stub · references available

stock market index

stub · references available

color index

stub · references available

Hoover index

stub · references available

AMX index

stub · references available

ramp travel index

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1078912399 · 0.5 · snapshot enwiki-001078912399

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.