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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:39:30+00:00 2026-05-14T02:39:30+00:00

how to select all the data from many tables? i try `SELECT * FROM

  • 0

how to select all the data from many tables?
i try

`"SELECT * FROM `table1`, `table2`"`

,
but result none understandable for me. it returns only some rows from table1, and 3 times all the data from table2. i’ve red one same question here, but don’t understand the answer. so could you help me? thanks in advance.

update:

when i try

(SELECT * FROM `table1`) UNION (SELECT * FROM `table2`)

it returns
#1222 – The used SELECT statements have a different number of columns

  • 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-14T02:39:30+00:00Added an answer on May 14, 2026 at 2:39 am

    Use the UNION SELECT construct

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

Sidebar

Related Questions

i have three tables, i want to select all data from one of the
I am using SQL Server 2008 and I need to select all data from
I would like to select all descendant but blog nodes. For the example, only
I need to execute a query To retrieve data from multiple tables but I'm
I have some data in an Excel Worksheet. I would like to select all
How do I select all the columns in a table that only contain NULL
I'd like to select all rows from one table which match one or more
I need to pull a large amount of data from various tables across a
I need to use the same Stored Procedures against many tables all with the
There is a lot of (older) related data spread over many tables in our

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.