10 Ağustos 2009 Pazartesi

Bir text deki bilgileri Sql ile değiştirmek (sql replace a text)

update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘%find this string%’, ‘%replace found string with this string%’) where FIELD_NAME LIKE '‘%find this string%' ;

şeklinde bir sql sorgusu tüm sutundaki bilgileri dolaşarak find this string yazan tüm yeri replace found string with this string şeklinde değiştirecektir. belki % operatörünü koymada yanlış yapmış olabilirim. :)

Hiç yorum yok:

Yorum Gönder