Gossamer Forum
Home : General : Perl Programming :

Replace values in Mysql column

Quote Reply
Replace values in Mysql column
I need to replace the values of a column in a mysql-db.

There is a column with values like that:

Flowers 505
Flowers 301
Flowers 440
.....

I want to remove "Flowers ", so that only the numbers remain.

Is there a way to make it with one command?

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Replace values in Mysql column In reply to
UPDATE Table SET Column = REPLACE(Column, 'Flowers ', '');

Last edited by:

RedRum: Jan 28, 2002, 12:54 AM