👁 98명의 독자가 공감하셨습니다
1 글 보임 - 1 에서 1 까지 (총 1 중에서)
  • 글쓴이
  • #4258
    mimoon12
    키 마스터

      sql 필드 내의 부분 문자열(큰 따옴표가 들어간) 변경하기

      update wp_posts SET post_content= REPLACE(post_content, '<a href=\"https://pentalogia.com/\" target=\"_blank\"><span style=\"margin-left: 0.3em; border: 1px dotted orange;\"> 개인블로그', '<a href=\"http://pentalogia.com/\" target=\"_blank\"><span style=\"margin-left: 0.3em; border: 1px dotted orange;\"> 개인블로그') WHERE ID=10
      
      update wp_posts SET post_content= REPLACE(post_content, '<a href=\"https://pentalogia.com/\" target=\"_blank\"><span style=\"margin-left: 0.3em; border: 1px dotted orange;\"> 개인블로그', '<a href=\"http://pentalogia.com/\" target=\"_blank\"><span style=\"margin-left: 0.3em; border: 1px dotted orange;\"> 개인블로그')
      
      update wp_posts SET post_author= REPLACE(post_author, '1', '376') WHERE ID=2 
      
      update wp_posts SET post_author= REPLACE(post_author, '1', '376') WHERE post_author='1' 
    1 글 보임 - 1 에서 1 까지 (총 1 중에서)
    • 답변은 로그인 후 가능합니다.