ERROR 1222 (21000): The used SELECT statements have a different number of columns
2011-07-20 00:00
513 查看
1) ERROR 1222 (21000): The used SELECT statements have a different number of columns :
这是因为使用union的两个SQL语句产生的记录的表结构不一致. 必须是结构完全一致的记录集合才可以使用UNION.
以上就是两个表的字段不一样,导致,所以大家可以检查下。
这是因为使用union的两个SQL语句产生的记录的表结构不一致. 必须是结构完全一致的记录集合才可以使用UNION.
以上就是两个表的字段不一样,导致,所以大家可以检查下。
相关文章推荐
- UNION关键字报错:ERROR 1222 (21000): The used SELECT statements have a different number of columns
- ERROR 1222 (21000): The used SELECT statements have a different number of columns
- ERROR 1222 (21000): The used SELECT statements have a different number of columns
- [Err] 1222 - The used SELECT statements have a different number of columns
- The used SELECT statements have a different number of columns
- sql语句遇到错误: The used SELECT statements have a different number of columns :
- sql异常-The used SELECT statements have a different number of columns
- mysql The used SELECT statements have a different number of columns
- The used SELECT statements have a different number of columns 错误解决
- Nhibernate: Foreign key must have same number of columns as the referenced primary key
- python中关于Np.hstack()错误的ValueError: all the input arrays must have same number of dimensions
- ERROR:Pack:2860 - The number of logical carry chain blocks exceeds the capacity for the target devic
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Set Log Level Available log levels Messages in log files can have different log levels. Some of the
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- The number of method references in a .dex file cannot exceed 64K. Error 解决方案
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- AndroidStudio线上APK打包.Error:The number of method references in a .dex file cannot exceed 64K.