|
|
|
substring('1234567890','(.+)456(.+)')
|
|||
|---|---|---|---|
|
#18+
Код: sql 1. выдаёт 123 Код: sql 1. выдаёт 7890 Код: sql 1. вроде как должно выдать 1237890, а выдаёт 123 как победить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2014, 18:31:46 |
|
||
|
substring('1234567890','(.+)456(.+)')
|
|||
|---|---|---|---|
|
#18+
kkv79, Не должно. The substring function with two parameters, substring(string from pattern), provides extraction of a substring that matches a POSIX regular expression pattern. It returns null if there is no match, otherwise the portion of the text that matched the pattern. But if the pattern contains any parentheses, the portion of the text that matched the first parenthesized subexpression (the one whose left parenthesis comes first) is returned. Так что Код: sql 1. Ну, или научите пользоваться меня группами из регекспа, аналогичным $1 и $2 в перле ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2014, 20:28:36 |
|
||
|
substring('1234567890','(.+)456(.+)')
|
|||
|---|---|---|---|
|
#18+
Код: sql 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2014, 22:39:30 |
|
||
|
substring('1234567890','(.+)456(.+)')
|
|||
|---|---|---|---|
|
#18+
LeXa NalBat Код: sql 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.03.2014, 07:54:54 |
|
||
|
|

start [/forum/topic.php?fid=53&msg=38588737&tid=1998790]: |
0ms |
get settings: |
12ms |
get forum list: |
20ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
207ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
58ms |
get tp. blocked users: |
1ms |
| others: | 233ms |
| total: | 556ms |

| 0 / 0 |
