Skip to content

Commit 2d248ac

Browse files
committed
Fixes
1 parent 7ad795e commit 2d248ac

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

ydb/docs/en/core/postgresql/statements/create_table.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The `CREATE TABLE` statement is used to create an empty table in the current dat
77
{% include [syntax.md](../../../_includes/postgresql/statements/create_table/syntax.md) %}
88

99
When creating a table, you can specify:
10-
1. **Table Type**: `TEMPORARY` / `TEMP` – a temporary table that is automatically deleted at the regular end of the session, otherwise it will no longer be available and will be automatically deleted after the time has elapsed. If this parameter is not set (left empty), a permanent table is created.
10+
1. **Table Type**: {% include [x](../../_includes/temp_table_description.md) %}
1111
2. **Table Name**: `<table name>` – you can use English letters in lowercase, numbers, and underscores. For example, the table name "People" will be stored as "people". For more information, see [Identifiers and Key Words](https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS).
1212
3. **Column Name**: `<column name>` – the same naming rules apply as for table names.
1313
4. **Data Type**: `<column data type>`[standard PostgreSQL data types](https://www.postgresql.org/docs/14/datatype.html) are specified.
@@ -44,7 +44,7 @@ In this example, we created the "people" table with a constraint block (`CONSTRA
4444

4545
{% include [create_table_temp.md](../../../_includes/postgresql/statements/create_table/create_table_temp.md) %}
4646

47-
The temporary table is defined using the `TEMPORARY` or `TEMP` keywords. It exists until the end of the session, after which it is automatically deleted.
47+
The temporary table is defined using the `TEMPORARY` or `TEMP` keywords.
4848

4949

5050
## Creating a table with sorting conditions {#create_table_collate}

ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/create_table.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ CREATE TABLE my_table (
114114
{% endif %}
115115

116116
{% if feature_temp_tables %}
117-
{% if feature_olap_tables %}#{%endif%}## Creating a temporary table {#row-additional}
117+
{% if feature_olap_tables %}#{%endif%}## Creating a temporary table {#temporary_tables}
118118
```sql
119119
CREATE TEMPORARY TABLE table_name (
120120
...
121121
);
122122
```
123-
`TEMPORARY` / `TEMP` – a temporary table that is automatically deleted at the regular end of the session, otherwise it will no longer be available and will be automatically deleted after the time has elapsed. If this parameter is not set (left empty), a permanent table is created.
123+
124+
{% include [x](../../../../../_includes/temp_table_description.md) %}
124125

125126
{% endif %}
126127

ydb/docs/ru/core/postgresql/statements/create_table.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CREATE [TEMPORARY | TEMP] TABLE <table name> (
1515
);
1616
```
1717
При создании таблицы можно задать:
18-
1. **Тип таблицы**: `TEMPORARY` / `TEMP` – временная таблица, которая автоматически удаляется при штатном завершении сессии, в противном случае она становится недоступна и удаляется по истечении некоторого времени. Если параметр не задан (оставлен пустым) – создается постоянная таблица;
18+
1. **Тип таблицы**: {% include [x](../../_includes/temp_table_description.md) %}
1919
2. **Имя таблицы**: `<table name>` – можно использовать английские буквы в нижнем регистре, цифры и нижнее подчёркивание. Например, название таблицы "People" будет сохранено как "people";
2020
3. **Имя столбца/колонки**: <column name> – действую такие же правила нейминга как и для имен таблиц;
2121
4. **Тип данных**: <column data type> – указываются [стандартные типы](https://www.postgresql.org/docs/current/datatype.html) данных PostgreSQL;
@@ -95,7 +95,7 @@ CREATE TEMPORARY TABLE people (
9595
);
9696
```
9797

98-
Временная таблица задается через ключевое слово `TEMPORARY` / `TEMP`. Она существует до конца сессии, далее таблица автоматически удаляется.
98+
Временная таблица задается через ключевые слова `TEMPORARY` или `TEMP`.
9999

100100

101101
## Создание таблицы с условиями сортировки {#create_table_collate}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ CREATE TABLE my_table (
115115
{% endif %}
116116

117117
{% if feature_temp_tables %}
118-
{% if feature_olap_tables %}#{%endif%}## Создание временных таблиц {#row-additional}
118+
{% if feature_olap_tables %}#{%endif%}## Создание временных таблиц {#temporary_tables}
119119
```sql
120120
CREATE TEMPORARY TABLE table_name (
121121
...
122122
);
123123
```
124-
`TEMPORARY` / `TEMP` – временная таблица, которая автоматически удаляется при штатном завершении сессии, в противном случае она становится недоступна и удаляется по истечении некоторого времени. Если параметр не задан (оставлен пустым) – создается постоянная таблица.
124+
{% include [x](../../../../../_includes/temp_table_description.md) %}
125125

126126
{% endif %}
127127

0 commit comments

Comments
 (0)