Database Command Query

opinionswrest

Member
Jan 6, 2020
117
5
Hi all,

Prob being a bit thick but does anyone know how in navicat you can replace all info in a certain row that matches what u need replacing example

In extradata for items table the room ads link change from to

Is there a query can run to replace the habbo.com to customlink.com all in one go saves doing each item individually?
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Need more information like the columns etc. but should be something like this:

(You need to change the table name/column & I did not test this so backup your data)

SQL:
UPDATE `table` SET `column` = REPLACE(`column`, 'https://habbo.com', 'https://customlink.com') WHERE `column` LIKE '%https://habbo.com%';
No, He's looking to replace the text "habbo.com" with "customlink.com" in the items table extradata column.
 

smg

New Member
Nov 25, 2018
19
11
update items set extradata = ' ' WHERE extradata = ' '

would work
 

Users who are viewing this thread

Top