Microsoft
Software
Hardware
Network
Question : mysql UPDATE TABLE where field 1 IN feild 2
In my version of plain english, i have 2 things i need to do.
1)
I want to update MYTABLE
to remove what is contained in FIELDB from FIELDA
EG I HAVE THIS
FIELDA FIELDB
hello1234 1234
I NEED THIS
FIELDA FIELDB
hello 1234
PART 2)
I also need to know how to strip it out if it is in the MIDDLE of a field
FIELD_X FIELD_Y
hello1234hello 1234
I NEED THIS
FIELD_X FIELD_Y
hellohello 1234
Thankyou.
Answer : mysql UPDATE TABLE where field 1 IN feild 2
Below should work for both the cases:
update yourtable set FIELDA=replace(FIELDA ,FIELDB,'');
Make sure you backup your table before trying any query.
Random Solutions
Access Automatically send email once payment amount is due
xls vs csv
search and replace
SBS2008 connect to internet fail. did not correctly configure your e-mail
create a for each loop for javascript in c#
Updating JAVA Control Panel settings.
Do I need to run setup /ps and setup prepareAD if I am installing Excahnge 2010 into a an Excahnge 2007 organization? I insert the xch2010 on the new server and run teh comands there or on the D
Hide/Unhide Objects through VBA
Symantec Corporate ver. 8, antivirus server service will not start
getting null