---
title: "execute sql"
method: POST
path: "/dataapps/sqleditor/{cluster_id}/statements"
tags: ["sqleditor"]
---

# execute sql

`POST /dataapps/sqleditor/{cluster_id}/statements`

execute sql result

## Path parameters

- `cluster_id` string, required

## Request body

- SqleditorStatementParam
  - `sessionid` string
  - `sql` string

## Response `200`

OK

- SqleditorStatementsRes
  - `data` SqleditorDataRes
    - `columns` SqleditorColumns[]
      - `col` string
      - `data_type` string
      - `nullable` boolean
    - `end_time` string
    - `execute_time` string
    - `limit` integer
    - `query` string
    - `row_count` integer
    - `rows` array[]
      - string[]
    - `start_time` string

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
