The used SELECT statements have a different number of columns

后端 未结 5 1576
执笔经年
执笔经年 2021-01-11 13:28

For examples I don\'t know how many rows in each table are and I try to do like this:

SELECT * FROM members 
UNION 
SELECT * FROM inventory

5条回答
  •  鱼传尺愫
    2021-01-11 13:37

    Each SELECT statement within the MySQL UNION ALL operator must have the same number of fields in the result sets with similar data types Visit https://www.techonthenet.com/mysql/union_all.php

提交回复
热议问题