MySQL Forums
Forum List  »  General

Re: How to update string in mysql
Posted by: Peter Brawley
Date: January 05, 2016 10:13PM

The string has double quotes but no single quotes, so surround with the latter:

update tbl set col = replace( col, '"available":"3"', '"available":"2"' );

Options: ReplyQuote


Subject
Written By
Posted
January 05, 2016 09:11PM
Re: How to update string in mysql
January 05, 2016 10:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.