出现这种错误,要先看一下是不是sql中有用到连接:union,union all之类的,如果有,需要注意相同名称字段的数据类型一定要相同。

    select a.time from A a union all select b.time from B b where a.name = b.name;

例如上现那句sql,要注意A和B中的time字段可能一个是date格式,一个是字符串格式,总之可能不是相同格式。一定要注意。

参考链接:http://blog.sina.com.cn/s/blog_4ccb7fed0101f7u3.html

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐