MySQL Forums
Forum List  »  Newbie

Re: MySql Update Or Insert Statement To Modify A Word In All Caps
Posted by: Arie Nagel
Date: August 18, 2005 02:18PM

CREATE TABLE foo(
col1 VARCHAR(12)
);

INSERT INTO foo
VALUES('literature'),('LITERATURE'), ('literature'), ('LITERATURE');

UPDATE foo
SET col1='LITERATURE: ' WHERE col1 = BINARY('LITERATURE');

see: http://dev.mysql.com/doc/mysql/en/charset-binary-op.html

Hope this helps.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySql Update Or Insert Statement To Modify A Word In All Caps
August 18, 2005 02:18PM


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.