Skip to content

Commit 027db71

Browse files
authored
YDBDOCS-819: serial types (fix) (#9634)
1 parent 57d8830 commit 027db71

File tree

2 files changed

+27
-27
lines changed
  • ydb/docs/ru/core/yql/reference/yql-core

2 files changed

+27
-27
lines changed

ydb/docs/ru/core/yql/reference/yql-core/syntax/create_table/index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,30 @@ WITH (
6666

6767
- Создание строковой таблицы
6868

69-
{% if feature_column_container_type %}
69+
{% if feature_column_container_type %}
7070

71-
```yql
72-
CREATE TABLE <table_name> (
73-
a Uint64,
74-
b Uint64,
75-
c Float,
76-
d "List<List<Int32>>"
77-
PRIMARY KEY (a, b)
78-
);
79-
```
71+
```yql
72+
CREATE TABLE <table_name> (
73+
a Uint64,
74+
b Uint64,
75+
c Float,
76+
d "List<List<Int32>>"
77+
PRIMARY KEY (a, b)
78+
);
79+
```
8080
81-
{% else %}
81+
{% else %}
8282
83-
```yql
84-
CREATE TABLE <table_name> (
85-
a Uint64,
86-
b Uint64,
87-
c Float,
88-
PRIMARY KEY (a, b)
89-
);
90-
```
83+
```yql
84+
CREATE TABLE <table_name> (
85+
a Uint64,
86+
b Uint64,
87+
c Float,
88+
PRIMARY KEY (a, b)
89+
);
90+
```
9191
92-
{% endif %}
92+
{% endif %}
9393
9494
9595
{% if feature_column_container_type == true %}

ydb/docs/ru/core/yql/reference/yql-core/types/_includes/serial.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ email | name | user_id
2929
`bob@example.com` | Bob | 2
3030
`john@example.com` | John | 3
3131

32-
Можно самостоятельно указать значение `Serial` колонки при вставке, в этом случае вставка будет выполняться, как с обычной целочисленной колонкой и `Sequence` затрагиваться при таком запросе никак не будет:
32+
Можно самостоятельно указать значение `Serial` колонки при вставке, в этом случае вставка будет выполняться, как с обычной целочисленной колонкой, и `Sequence` затрагиваться при таком запросе никак не будет:
3333

3434
``` yql
3535
UPSERT INTO users (user_id, name, email) VALUES (4, 'Peter', 'peter@example.com');
@@ -45,12 +45,12 @@ UPSERT INTO users (user_id, name, email) VALUES (4, 'Peter', 'peter@example.com'
4545

4646
Тип | Максимальное значение | Тип значения
4747
----- | ----- | -----
48-
`SmallSerial` | $2^15–1$ | `Int16`
49-
`Serial2` | $2^15–1$ | `Int16`
50-
`Serial` | $2^31–1$ | `Int32`
51-
`Serial4` | $2^31–1$ | `Int32`
52-
`Serial8` | $2^63–1$ | `Int64`
53-
`BigSerial` | $2^63–1$ | `Int64`
48+
`SmallSerial` | $2^{15}–1$ | `Int16`
49+
`Serial2` | $2^{15}–1$ | `Int16`
50+
`Serial` | $2^{31}–1$ | `Int32`
51+
`Serial4` | $2^{31}–1$ | `Int32`
52+
`Serial8` | $2^{63}–1$ | `Int64`
53+
`BigSerial` | $2^{63}–1$ | `Int64`
5454

5555
При переполнении `Sequence` на вставке будет возвращаться ошибка:
5656

0 commit comments

Comments
 (0)