---
title: "Objects executing database queries"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:guide-cobjects-database-queries@main"
source: "Guide/TypoScriptObjects/DatabaseQueries/Index.rst"
modified: "2026-09-15T19:22:01+00:00"
---

# Objects executing database queries

-   [CONTENT](https://docs.typo3.org/permalink/t3tsref:cobj-content@main) can be used to access arbitrary tables
    of TYPO3 CMS internals. This does not only include table "tt_content", but
    extension tables can also be referenced. The [select](https://docs.typo3.org/permalink/t3tsref:select@main)
    function makes it possible to generate complex SQL queries.
-   [RECORDS](https://docs.typo3.org/permalink/t3tsref:cobj-records@main) can be used to reference specific data
    records. This is very helpful if the same text has to be present on all
    pages. By using RECORDS, a single content element can be defined and shown.
    Thus, an editor can edit the content without having to copy the element
    repetitively. This object is also used by the content element type "Insert
    records".

    In the following example, the email address from an address record is
    rendered and linked as email at the same time:

    **EXT:site_package/Configuration/Sets/Main/setup.typoscript**

    ```typoscript
    page.80 = RECORDS
    page.80 {
      source = 1
      tables = tt_address
      conf.tt_address = COA
      conf.tt_address {
        20 = TEXT
        20.stdWrap.field = email
        20.stdWrap.typolink.parameter.field = email
      }
    }

    ```
-   [HMENU](https://docs.typo3.org/permalink/t3tsref:cobj-hmenu@main) imports the page tree and offers
    comfortable ways to generate a menu of pages or a sitemap. Special menus
    include the breadcrumb trail, simple list of pages or subpages, a page
    browser (providing "Previous" and "Next" buttons for a set of pages) and a
    language selector.
