ClickHouse/docs/zh/getting-started/playground.md

44 lines
1.6 KiB
Markdown
Raw Normal View History

2020-04-03 13:23:32 +00:00
---
2022-04-10 23:08:18 +00:00
sidebar_position: 14
sidebar_label: 体验平台
2020-04-03 13:23:32 +00:00
---
2022-03-21 03:10:28 +00:00
# ClickHouse Playground {#clickhouse-playground}
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
[ClickHouse Playground](https://play.clickhouse.com/play?user=play) allows people to experiment with ClickHouse by running queries instantly, without setting up their server or cluster.
Several example datasets are available in Playground.
2022-03-21 03:10:28 +00:00
You can make queries to Playground using any HTTP client, for example [curl](https://curl.haxx.se) or [wget](https://www.gnu.org/software/wget/), or set up a connection using [JDBC](../interfaces/jdbc.md) or [ODBC](../interfaces/odbc.md) drivers. More information about software products that support ClickHouse is available [here](../interfaces/index.md).
2020-12-01 14:23:12 +00:00
## Credentials {#credentials}
2022-03-21 03:10:28 +00:00
| Parameter | Value |
|:--------------------|:-----------------------------------|
| HTTPS endpoint | `https://play.clickhouse.com:443/` |
| Native TCP endpoint | `play.clickhouse.com:9440` |
| User | `explorer` or `play` |
| Password | (empty) |
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
## Limitations {#limitations}
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
The queries are executed as a read-only user. It implies some limitations:
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
- DDL queries are not allowed
- INSERT queries are not allowed
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
The service also have quotas on its usage.
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
## Examples {#examples}
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
HTTPS endpoint example with `curl`:
2020-04-03 13:23:32 +00:00
2020-12-01 14:23:12 +00:00
``` bash
2022-03-21 03:10:28 +00:00
curl "https://play.clickhouse.com/?user=explorer" --data-binary "SELECT 'Play ClickHouse'"
2020-12-01 14:23:12 +00:00
```
2020-04-03 13:23:32 +00:00
2022-03-21 03:10:28 +00:00
TCP endpoint example with [CLI](../interfaces/cli.md):
2020-04-03 13:23:32 +00:00
``` bash
2022-03-21 03:10:28 +00:00
clickhouse client --secure --host play.clickhouse.com --user explorer
2020-04-03 13:23:32 +00:00
```