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 6980823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:04:35+00:00 2026-05-27T18:04:35+00:00

I want to select columns from a table where the values of columns are

  • 0

I want to select columns from a table where the values of columns are NULL.

For example:

SELECT * FROM table1 WHERE column1 IS NULL;

the above query returns rows where column1 doesn’t have any value.

But I want to return multiple columns(where column1,column2,….)

I want to use this in MYSQL

  • 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-05-27T18:04:36+00:00Added an answer on May 27, 2026 at 6:04 pm
    SELECT *
    FROM table1
    WHERE coalesce(column1, column2, column3) IS NULL;
    

    You will have to enumerate all required columns. (I should confess this is a hack and should not be used in production code)

    UPD

    IF you want to check if at least a single column is null you should use OR:

    SELECT *
    FROM table1
    WHERE column1 IS NULL or column2 IS NULL;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to select rows from a table if a column contains a certain
I have a query with loads of columns. I want to select rows where
Put simply, I want to select all data in two columns from each of
I m trying to select rows/columns using vba. I want to pass row numbers
I would like my users to select the columns of table they want to
I have table with 3 columns A B C. I want to select *
Table A, columns OrderId, OrderTimeStamp (datetime). I want to SELECT all records for any
I have a problem when I want to query table using ORM ,example I
I want to sum the value of 3 columns from 3 tables My query
I have a query SELECT * FROM table1 WHERE documentId in ( --select items

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.