Re: regexp_replace and search/replace values stored in table
От | Tim Landscheidt |
---|---|
Тема | Re: regexp_replace and search/replace values stored in table |
Дата | |
Msg-id | m3fx2hqc6g.fsf@passepartout.tim-landscheidt.de обсуждение исходный текст |
Ответ на | regexp_replace and search/replace values stored in table (Leif Biberg Kristensen <leif@solumslekt.org>) |
Ответы |
Re: regexp_replace and search/replace values stored in table
|
Список | pgsql-sql |
Leif Biberg Kristensen <leif@solumslekt.org> wrote: > [...] > So far, so good. But when I try to do the actual expansion, I'm stumped. > pgslekt=> select regexp_replace((select source_text from sources where > source_id=23091), (select quote_literal(short_link) from short_links where > link_type = 'sk'), (select quote_literal(long_link) from short_links where > link_type = 'sk'), 'g'); > regexp_replace > ------------------------------------------------------------------------------------------------ > [sk=25658|67|side 66a]. Vabakken under Klyve vestre i Solum 07.07.1784: > [p=6947|Isach Jonsen]. > (1 row) > What am I missing? For starters, omit the call to quote_literal (). Tim
В списке pgsql-sql по дате отправления: