Re: Modifying text data?
От | Jacob Vennervald Madsen |
---|---|
Тема | Re: Modifying text data? |
Дата | |
Msg-id | EB0B5D39043C344BA53B0F4AB15AE63302995B@gop-server.GOP-server.local обсуждение исходный текст |
Ответ на | Modifying text data? (e_arizon_benito@yahoo.com (Enrique Arizón Benito)) |
Список | pgsql-general |
I would guess you will have to make a stored procedure to handle that. Jacob Vennervald > -----Original Message----- > From: Enrique Arizón Benito [mailto:e_arizon_benito@yahoo.com] > Sent: 8. marts 2002 11:48 > To: pgsql-general@postgresql.org > Subject: [GENERAL] Modifying text data? > > > Hi, > I'm trying to modify text fields in an "automatic" way so to be able > for example, to change any 'Canada' substring occurrence with the > UPPER CASE equivalent "CANADA", with the added option 'Canada' > appearing anywhere inside the text field. > While it is very easy to find matching registers by using regular > expresions, (SELECT * from my_table where my_columm ~* 'canada'; in > previous example) I find no way to change them afterwards, but > manually updating each register. > > Thanks in advance for any suggestions! > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >
В списке pgsql-general по дате отправления: