Updated on 2024-04-29 GMT+08:00

Typical Use Case

This section describes the application development in a typical scenario, helping you quickly learn and master the ClickHouse development process and know key functions.

Scenario

Assume that a user needs to develop an application to store or query the name, age, and onboarding date of a person based on specified search criteria. The procedure is as follows:

  1. Set up the database connection.
  2. Create an information table.
  3. Insert data. (Data in the sample code is randomly generated.)
  4. Query the data based on specified search criteria.