using a correlated subquery in update

Поиск
Список
Период
Сортировка
От Sean Davis
Тема using a correlated subquery in update
Дата
Msg-id D1792BB0-452D-11D9-9DF2-000D933565E8@mail.nih.gov
обсуждение исходный текст
Ответы Re: using a correlated subquery in update
Список pgsql-novice
I have a table that has a column that has values like XM_29832.11 and I
want to do an update to take off the .11 part.  I can do this for a
single value using:

select substring('XM_29832.11' from '^([A-Z]*_[0-9*])');

However, how can I write an update to use the above as a subquery to
update the whole column at once?

Thanks,
Sean


В списке pgsql-novice по дате отправления:

Предыдущее
От: Kjetil Haaland
Дата:
Сообщение: order by for user defined types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: order by for user defined types