---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.4
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/select/streaming.md
  - https://ydb.tech/docs/ru/yql/reference/syntax/select/streaming.md
sourcePath: en/core/yql/reference/syntax/select/streaming.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Streaming read from a topic

You can read from a [topic](https://ydb.tech/docs/en/concepts/datamodel/topic.md) with a regular `SELECT` without creating a [streaming query](https://ydb.tech/docs/en/concepts/streaming-query/streaming-query.md). Set `STREAMING = "TRUE"` in the `WITH` block and limit output rows with `LIMIT`; otherwise the query does not complete.

{% note warning %}

This method is intended only for debugging and checking data in a topic. For production processes, create streaming queries using [CREATE STREAMING QUERY](https://ydb.tech/docs/en/yql/reference/syntax/create-streaming-query.md).

{% endnote %}

{% note info %}

In the examples, `ydb_source` is a pre-created [external data source](https://ydb.tech/docs/en/concepts/datamodel/external_data_source.md), and `topic_name` is a topic available through it.

{% endnote %}

## Example


```yql
SELECT
    Data
FROM
    ydb_source.topic_name
WITH (
    FORMAT = raw,
    SCHEMA = (
        Data String
    ),
    STREAMING = "TRUE"
)
LIMIT 1
```


## See also

* [Debug reads from a topic](https://ydb.tech/docs/en/recipes/streaming_queries/debug-read.md) — recipe with additional examples
* [Streaming queries](https://ydb.tech/docs/en/concepts/streaming-query/streaming-query.md)
* [CREATE STREAMING QUERY](https://ydb.tech/docs/en/yql/reference/syntax/create-streaming-query.md)
