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?
 

smg

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

would work
 

JayC

Always Learning
Aug 8, 2013
5,494
1,398
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.
 

Users who are viewing this thread

Top