Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add new column and copy values to it from existing column

Quote Reply
Add new column and copy values to it from existing column
I want to add a new column to the category table and then copy corresponding category names in to that column as follows, how to do this with mysqlman or some other way:

1) If my category is for example, Main/Sub1/Sub2 then I want the row in the column to show "Sub2"
2) Taking this one step further, if possible I want to add a suffix to the end of each then category like so "Sub2-Sometext" ie. it will add Sometext to the end of each category that I copied into in the new column.

Thanks!
Subject Author Views Date
Thread Add new column and copy values to it from existing column socrates 5417 Mar 25, 2017, 7:44 PM
Thread Re: [socrates] Add new column and copy values to it from existing column
Andy 5283 Mar 26, 2017, 6:27 AM
Post Re: [Andy] Add new column and copy values to it from existing column
socrates 5176 Mar 27, 2017, 10:59 PM