forums › forums › SQLyog › Using SQLyog › How To: Find And Replace
- This topic is empty.
-
AuthorPosts
-
-
July 26, 2006 at 1:43 am #9773XiRoCCoMember
Hi –
Using SQLyog v5.11 (free), I need to run a 'search and replace' to replace a particular character across an entire database consisting of 88 tables. How would I go about doing this, or where would I find instructions for doing this? I tried the Help docs, but just could not find it.
Thanks,
–Kevin
-
July 26, 2006 at 2:07 am #22010peterlaursenParticipant
I think the easiest way would be to export the database, 'search and replace all' in an editor and import!
It must be a text editor not a word processor! If the file is too big for Notepad, PSpad is a good free one.
But you will of course have to be sure that every instance of that character shall be changed!
BTW: you should update SQLyog!
-
July 28, 2006 at 6:54 pm #22011XiRoCCoMemberpeterlaursen wrote on Jul 25 2006, 07:07 PM:I think the easiest way would be to export the database, 'search and replace all' in an editor and import!
It must be a text editor not a word processor! If the file is too big for Notepad, PSpad is a good free one.
But you will of course have to be sure that every instance of that character shall be changed!
BTW: you should update SQLyog!
thanks — i use UltraEdit32 – a brilliant text editor. i considered exporting and reimporting and now see that it's probably the easiest way to accomplish this.
thanks again
–kevin
-
October 12, 2006 at 12:32 pm #22012Richard J LacroixMemberXiRoCCo wrote on Jul 28 2006, 02:54 PM:thanks — i use UltraEdit32 – a brilliant text editor. i considered exporting and reimporting and now see that it's probably the easiest way to accomplish this.
thanks again
–kevin
😮
That's doing it the hard way, try this in SQLyog:
update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');
-
-
AuthorPosts
- You must be logged in to reply to this topic.