-1

I've been used the solution, but it cannot solved for special character. I've tried

SELECT address FROM myDatabase.users
where substring(address,1,1) = '"';

What should I do to remove or change any special character or specific character in database like that??


anyway, after I ask my friend, he show me that the error come from setting in mysql workbench, I should to unselect "Safe Updates" check box in Edit >> Preferences >> SQL Editor >> Query Editor. thanks for the answer.

André
  • 4,417
  • 4
  • 29
  • 56
Ahmad Azwar Anas
  • 1,289
  • 13
  • 22

1 Answers1

4

you could use the REPLACE function, so something like:

UPDATE myDatabase.users
SET address = REPLACE( address, '"', '' )
WHERE address LIKE '"%';
Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166