|
psql ~
|
|||
---|---|---|---|
#18+
~ - это что за оператор сравнения? не могу найти описание что-то. типа примерно равно или как? ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 15:43 |
|
psql ~
|
|||
---|---|---|---|
#18+
ursidosql_user2, Посмотрите RTFM . Да, это равно. Но не конкретна, а типа. вот оно что, спасибо! ~ Matches regular expression, case sensitive 'thomas' ~ '.*thomas.*' ~* Matches regular expression, case insensitive 'thomas' ~* '.*Thomas.*' !~ Does not match regular expression, case sensitive 'thomas' !~ '.*Thomas.*' !~* Does not match regular expression, case insensitive 'thomas' !~* '.*vadim.*' POSIX regular expressions provide a more powerful means for pattern matching than the LIKE and SIMILAR TO operators. Many Unix tools such as egrep, sed, or awk use a pattern matching language that is similar to the one described here. A regular expression is a character sequence that is an abbreviated definition of a set of strings (a regular set). A string is said to match a regular expression if it is a member of the regular set described by the regular expression. As with LIKE, pattern characters match string characters exactly unless they are special characters in the regular expression language — but regular expressions use different special characters than LIKE does. Unlike LIKE patterns, a regular expression is allowed to match anywhere within a string, unless the regular expression is explicitly anchored to the beginning or end of the string. Some examples: 'abc' ~ 'abc' true 'abc' ~ '^a' true 'abc' ~ '(b|d)' true 'abc' ~ '^(b|c)' false ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 16:00 |
|
psql ~
|
|||
---|---|---|---|
#18+
Для конкретной базы стоит посмотреть в Код: sql 1.
А то смысл оператора очень сильно зависит от операндов. Вернее, операндами и определяется. Например, кроме регулярки есть ещё битовые операции для интов , какие-то геометрические действия (deprecated операторы) и это не говоря о возможность другими extension или своим кодом объявлять свои операторы. ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2017, 16:26 |
|
|
start [/forum/topic.php?fid=53&fpage=74&tid=1996554]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
29ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
others: | 309ms |
total: | 428ms |
0 / 0 |