Jump to content

[SOLVED] update a table column data


shamsuljewel

Recommended Posts

here you go pretty heavy but if you put in data that way you have to run some heavy queries to update it

 

update table1 set col1 = REPLACE(REPLACE(REPLACE(ip,'jewel,','shah,'),',jewel',',shah'),',jewel,',',shah,') where col1 like 'jewel,%' or col1 like '%,jewel,%' or col1 like '%,jewel'

this should work for a delete

 

update table1 set col1 = REPLACE(REPLACE(REPLACE(ip,'jewel,',''),',jewel',''),',jewel,',',') where col1 like 'jewel,%' or col1 like '%,jewel,%' or col1 like '%,jewel'

 

this will delete all jewel enteries

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.