| Цитата | SUBSTRING( <string expr> FROM <pos> [FOR <length>]) Internal function implementing the ANSI SQL SUBSTRING() function. It will return a stream consisting of the byte at <pos> and all subsequent bytes up to the end of the string. If the option FOR <length> is specified, it will return the lesser of <length> bytes or the number of bytes up to the end of the input stream. The first argument can be any expression, constant or identifier that evaluates to a string. <pos> must evaluate to an integer. <pos> starts at 1, like other SQL commands. Neither <pos> nor <length> can be query parameters. Because <pos> and <length> are byte positions, the identifier can be a binary blob, or a sub_type 1 text blob with an underlying one-byte-per-character charset. The function currently does not handle text blobs with Chinese (2 byte/char maximum) or Unicode (3 byte/char maximum) character sets. For a string argument (as opposed to a blob), the function will tackle ANY charset. Available in SQL and DSQL. UPDATE ATABLE SET COLUMNB = SUBSTRING(COLUMNB FROM 4 FOR 99) WHERE ... Please refer also to the section on External Functions (UDFs) following this, for details of changes and additions to external substring functions in the standard UDF library. | Добавлено @ 01:34 | Цитата(StayAtHome @ 20.2.2005, 01:19) | | А есть "стандартная" ф-я для поиска вхождения подстроки в строку? |
Извлечение подстроки из строки. |