# Sequence

[Snowflake Documentation](https://docs.snowflake.com/en/sql-reference/sql/create-sequence)

Manages the creation and configuration of sequences in Snowflake, which are objects that generate numeric values according to a specified sequence.

## Examples

### Python

```python
sequence = Sequence(
    name="some_sequence",
    owner="SYSADMIN",
    start=100,
    increment=10,
    comment="This is a sample sequence."
)
```

### YAML

```yaml
sequences:
  - name: some_sequence
    owner: SYSADMIN
    start: 100
    increment: 10
    comment: This is a sample sequence.
```

## Fields

* `name` (string, required) - The name of the sequence.
* `owner` (string or [Role](/titan-core/resources/role.md)) - The owner role of the sequence. Defaults to "SYSADMIN".
* `start` (int) - The starting value of the sequence.
* `increment` (int) - The value by which the sequence is incremented.
* `comment` (string) - A comment for the sequence.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://titan-core.gitbook.io/titan-core/resources/sequence.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
