Replace all the special characters at a time in mysql

时间:2018-02-05 12:56:04

标签: php mysql

I want to replace all the special character with space ,I tried this below query its working partially ,

UPDATE
  inventory_set_variations
SET
  title =
REPLACE
  (
  REPLACE
    (
    REPLACE
      (
      REPLACE
        (
        REPLACE
          (
        REPLACE
          (title,
          '-',
          ''),
          '+',
          ''
        ),
        '.',
        ''
      ),
      '(',
      ''
    ),
    ')',
    ''
  ),
  ' ',
  ''
)
WHERE
  isvid = 1009638

here i want to replace all the special character with space and want to keep only alpha numeric character.

is there any suggestion ?

0 个答案:

没有答案