How do I combine 2 select statements into one?

后端 未结 8 2193
执念已碎
执念已碎 2020-12-23 13:23

I am a noob when it comes to SQL syntax.

I have a table with lots of rows and columns of course :P Lets say it looks like this:

      AAA BBB CCC DD         


        
8条回答
  •  借酒劲吻你
    2020-12-23 13:53

    If they are from the same table, I think UNION is the command you're looking for.

    (If you'd ever need to select values from columns of different tables, you should look at JOIN instead...)

提交回复
热议问题