Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:43:40+00:00 2026-06-10T17:43:40+00:00

I have a script with 800 queries. Most of them return nothing. How can

  • 0

I have a script with 800 queries. Most of them return nothing.

How can I modify this scripts to know which ones are returning rows only

SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_notification_template` WHERE `name` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_notification_template` WHERE `push_title` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_notification_template` WHERE `message_title` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_queue` WHERE `push_title` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_queue` WHERE `message_title` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`xmlconnect_queue` WHERE `type` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`zizio_groupsale` WHERE `zizio_object_id` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`zizio_groupsale` WHERE `name` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`zizio_groupsale` WHERE `recurrence_child` LIKE '%1720%';
SELECT * FROM `theprint_depotlive-v16`.`zizio_groupsale` WHERE `recurrence_ancestor` LIKE '%1720%';
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:43:42+00:00Added an answer on June 10, 2026 at 5:43 pm

    You could do something like this, which would return just the queries that have rows:

    SELECT
      '`theprint_depotlive-v16`.`xmlconnect_notification_template`' as table,
      '`name` LIKE \'%1720%\'' as condition,
      count(*) as count
    FROM `theprint_depotlive-v16`.`xmlconnect_notification_template`
    WHERE `name` LIKE '%1720%'
    
    UNION
    
    SELECT
      '`theprint_depotlive-v16`.`xmlconnect_notification_template`' as table,
      '`push_title` LIKE \'%1720%\'' as condition,
      count(*) as count
    FROM `theprint_depotlive-v16`.`xmlconnect_notification_template`
    WHERE `push_title` LIKE '%1720%'
    
    UNION
    
    ...
    
    WHERE count > 0;
    

    If your list of queries is in a table or something that can be read by mysql, you could potentially generate the above query programmatically using dynamic SQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have script which allows to display Bing search results. I can call for
I have this little hover script. $('iframe').hover(function() { $('.caption').fadeIn(800); }, function() { $('.caption').fadeOut(800); });
i have this: <%@ Control Language=C# Inherits=System.Web.Mvc.ViewUserControl<string> %> <script src=<%=Url.Content(~/Scripts/ckeditor/ckeditor.js)%> type=text/javascript></script> <script type=text/javascript> $(document).ready(function()
I have written this simple script in python: import gtk window = gtk.Window() window.set_size_request(800,
I have script like this : fullscript.sh if [ ! -f /opt/laks/linux-2.6.33.2.tar.bz2 ] then
i have a script which is for virtual keyboard, i am facing some problem
I have this script that run to fix my menu bar to the browser
Hello I have a Google Visualisation Line chart like this... <script type=text/javascript src=https://www.google.com/jsapi></script> <script
I have this java code: <script src=http://www.google.com/jsapi></script> <script type=text/javascript> google.load(jquery, 1.2.6); $(a#more).click(function() { $(#info_box).show(blind,
I have a jQuery script which is ideal for loading different secions of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.