Home > Database > Mysql Tutorial > body text

ERROR 1222 (21000): The used SELECT statements have a differ

WBOY
Release: 2016-06-07 18:03:52
Original
1507 people have browsed it

mysql 提示SQL-ERROR summary different number of columns

1) ERROR 1222 (21000): The used SELECT statements have a different number of columns :

  这是因为使用union的两个SQL语句产生的记录的表结构不一致. 必须是结构完全一致的记录集合才可以使用UNION.

以上就是两个表的字段不一样,导致,所以大家可以检查下。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!