Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Query In A Specific Table In All Databases

forums forums SQLyog Query Builder and Schema Designer Query In A Specific Table In All Databases

  • This topic is empty.
Viewing 3 reply threads
  • Author
    Posts
    • #12461
      Seyfi Go
      Member

      Hello,

      i must create a query and need your help

      i have 134 databases under same connection.

      i must execute a query for finding and removing the rows including “string1,string2,…string8” from “wp-post” tables

      but without querying all of tables.

      which is the best way to find and delete the rows with theses strings without querying more than 2650 tables in 134 databases.

      i will be grateful if you can help me

      Best Regards

      seyfigo

    • #32674
      peterlaursen
      Participant

      You should consider using the Data Search feature introduced in SQLyog Ultimate 9.1 and 9.2. Refer http://webyog.com/faq/content/33/7/en/sqlyog-version-history.html

      Once the rows have been found you can check the checkbox for each (shift+click operator is suported) and delete. It willl still take a little time but much faster than executing a query for each table. Please first read about Data Search in the help file (help .. help menu) to understand exactly how it works – and I would also enssure a backup first.

    • #32675
      Seyfi Go
      Member
      'peterlaursen' wrote:

      You should consider using the Data Search feature introduced in SQLyog Ultimate 9.1 and 9.2. Refer http://webyog.com/faq/content/33/7/en/sqlyog-version-history.html

      Once the rows have been found you can check the checkbox for each (shift+click operator is suported) and delete. It willl still take a little time but much faster than executing a query for each table. Please first read about Data Search in the help file (help .. help menu) to understand exactly how it works – and I would also enssure a backup first.

      Dear Peter,

      thank you for your response but i have entreprise version ! not ultimate, is there a way to make it with sql queries ?

      thaank you

      Seyfi Go

      http://www.seyfi.org

    • #32676
      Jan.S
      Member

      Hi Seyfigo,

      You can use the attached stored procedure. It can be created in any of your databases and then executed using CALL search('text to search').

      You might want to try it on some test data, and then modify it to suit your needs.

      Regards,

      Janani

Viewing 3 reply threads
  • You must be logged in to reply to this topic.