![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 204.45.15.210
|
|||
|
|||
|
I have a column containing list of streets. I need to replace 'eyeglasses' with 'glasses'. The replacement can be made in the current column or in a new column with the address in the required format. The following is the sample data. 'Column 1' contains the data in current format. 'Column 2' contains the data in the desired format.
Code:
Column 1 Column 2 cheap eyeglasses cheap glasses sports sunglasses sports sunglasses discount eyeglasses discount glasses |
|
#2
IP: 204.45.15.210
|
|||
|
|||
|
This query works for this:
Code:
UPDATE table SET column = REPLACE(column, 'eyeglasses', 'glasses'); |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Find and Replace Text in MySQL Database using SQL | topvip | MySQL | 0 | 2012-07-10 08:12 AM |