-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.

4

1 回答 1

4

you could use the REPLACE function, so something like:

UPDATE myDatabase.users
SET address = REPLACE( address, '"', '' )
WHERE address LIKE '"%';
于 2013-09-23T07:56:00.317 回答