You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SQL.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1344,4 +1344,16 @@ hashtext
1344
1344
SELECT split_part('abc.def.ghi', '.', 2);
1345
1345
```
1346
1346
1347
-
Результат выполнения запроса будет 'def', так как при указании индекса 2 была выбрана подстрока 'def' из исходной строки 'abc.def.ghi', разделенной по символу '.'.
1347
+
Результат выполнения запроса будет 'def', так как при указании индекса 2 была выбрана подстрока 'def' из исходной строки 'abc.def.ghi', разделенной по символу '.'.
1348
+
1349
+
1350
+
### substring
1351
+
1352
+
Функция `substring` возвращает подстроку из заданной строки.
1353
+
1354
+
```sql
1355
+
SELECT substring('Hello, world!' from 1 for 5);
1356
+
``
1357
+
1358
+
Результат: "Hello"
1359
+
Функция вернула подстроку из исходной строки 'Hello, world!' начиная с 1-го символа и содержащую 5 символов.
0 commit comments