Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    54

    Unanswered: How replace content (string) in a LONGTEXT?

    I tried without any result with:
    update table1 set col1=REPLACE(col1,'string ko','string ok');

    Have you any idea to do that?

    Thank you very much!
    Fabio

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    what does "without any result" mean?

    did the query run, or produce an error message?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Apr 2004
    Posts
    54
    I fix it, the problem was that I trid to replace "windows path":
    KO -> REPLACE(col1,'D:\www\1','string ok');
    OK -> REPLACE(col1,'D:\\www\\1','string ok');


    thank you, @r937!:-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •