Skip to main content

SHOW RECORDS

Commands › Looking around · Any caller; rows they are not granted never appear

Finds records of every model entity whose key or title contains the text, ignoring case. Use it when you have a name or number but not the entity: a customer's name, an invoice number, a person.

Syntax​

SHOW RECORDS LIKE '<text>' [ LIMIT <n> ]

Parameters​

ParameterDescription
'<text>'The text to find, quoted and not empty. It matches anywhere in the key or the title.
LIMIT <n>Records per entity, at least 1. The default is 5 and the most is 50.

Usage notes​

  • One row per record found: entity, key, title.
  • Every entity with records of its own is searched at once, each as a SELECT run as the caller. An entity the caller cannot read is left out.
  • A key or title that is not text is compared as text, so a numbered key is found by its number.
  • The MCP query tool does not run this statement; run it through SerchaQL directly. Over MCP, catalogue and a SELECT ... WHERE lower(t.name) LIKE '%...%' do the same job.

Examples​

SHOW RECORDS LIKE 'acme' LIMIT 3
entitykeytitle
CustomeracmeAcme Corp
SupplierS-31Acme Packaging
OrderPO-1042Acme pallets, November

Not supported​

RefusedWrite instead
Empty textSome text to find
LIMIT 0At least 1
-- Refused by the engine
SHOW RECORDS LIKE ''
-- Refused by the engine
SHOW RECORDS LIKE 'acme' LIMIT 0

See also​

SHOW LINKS · SHOW MODEL · DESCRIBE · LIKE