-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSUP-3121: Update the SHOW DATABASES and SHOW TABLES descriptions #16115
DOCSUP-3121: Update the SHOW DATABASES and SHOW TABLES descriptions #16115
Conversation
Update descriptions of show databases and show tables.
Update 'identical query'.
Syntax: | ||
|
||
```sql | ||
SHOW DATABASES [LIKE '<pattern>'] [ILIKE '<pattern>'] [NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SHOW DATABASES [LIKE '<pattern>'] [ILIKE '<pattern>'] [NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] | |
SHOW DATABASES [LIKE|ILIKE|NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] |
This statement is identical to the query: | ||
|
||
```sql | ||
SELECT name FROM system.databases [WHERE name LIKE '<pattern>'] [WHERE name ILIKE '<pattern>'] [WHERE name NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SELECT name FROM system.databases [WHERE name LIKE '<pattern>'] [WHERE name ILIKE '<pattern>'] [WHERE name NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] | |
SELECT name FROM system.databases [WHERE name LIKE|ILIKE|NOT LIKE '<pattern>'][LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] |
SELECT name FROM system.databases [WHERE name LIKE '<pattern>'] [WHERE name ILIKE '<pattern>'] [WHERE name NOT LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE filename] [FORMAT format] | ||
``` | ||
|
||
### SHOW DATABASES LIKE {#show-databases-like} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to place all the examples under the header ### Examples
.
Each example doesn't need the header. You can preface examples with a description of what the example does. For example, "Getting database names, containing the symbol sequence de
in their names."
|
||
### SHOW DATABASES LIKE {#show-databases-like} | ||
|
||
Syntax: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not syntax
, this is query
.
Внес поправки согласно комментариям.
└─────────┘ | ||
``` | ||
|
||
Getting database names, containing the case insensitive symbols sequence 'de' in their names: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting database names, containing the case insensitive symbols sequence 'de' in their names: | |
Getting database names, containing symbols sequence 'de' in their names, in the case insensitive manner: |
Внес поправки и перевел на русский язык.
└─────────┘ | ||
``` | ||
|
||
Получение списка баз данных, имена которых нечувствительные к регистру и содержащие последовательность символов 'de': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Получение списка баз данных, имена которых нечувствительные к регистру и содержащие последовательность символов 'de': | |
Получение списка баз данных, имена которых содержат последовательность символов 'de' независимо от регистра: |
└────────────────────────────────┘ | ||
``` | ||
|
||
Получение первых 2 строк из списка имен баз данных: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Получение первых 2 строк из списка имен баз данных: | |
Получение первых двух строк из списка имен баз данных: |
└──────────────────┘ | ||
``` | ||
|
||
Получение списка таблиц, имена которых нечувствительные к регистру и содержащие последовательность символов 'user': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Получение списка таблиц, имена которых нечувствительные к регистру и содержащие последовательность символов 'user': | |
Получение списка таблиц, имена которых содержат последовательность символов 'user' без учёта регистра: |
Внес мелкие поправки.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category: