如何解决 Oracle 错误 ORA-01790?

How to resolve Oracle error ORA-01790?(如何解决 Oracle 错误 ORA-01790?)
本文介绍了如何解决 Oracle 错误 ORA-01790?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个由union"连接的选择语句.在执行该语句时,我得到了:

I have two select statements joined by "union". While executing that statement I've got:

错误报告:SQL 错误:ORA-01790:表达式必须与相应的表达式具有相同的数据类型01790. 00000 - 表达式必须与相应的表达式具有相同的数据类型"

Error report: SQL Error: ORA-01790: expression must have same datatype as corresponding expression 01790. 00000 - "expression must have same datatype as corresponding expression"

也许你能给我一个关于如何诊断这个问题的建议?

Maybe you can give me an advise on how to diagnose this problem?

推荐答案

正如我在问题中提到的,我想获得有关如何解决我的问题的建议.我所做的是在每个 select 语句中一次启用一列,并发现我的 SQL UNION 的最后一列不匹配.非常感谢您的参与和帮助,但我知道我的类型不匹配,我不知道如何进行故障排除.

As I mention in the question I'd like to have SUGGESTIONS for how to troubleshoot my problem. What I've done is enabled one column at a time in each select statement and found that I had mismatch at the very last column of my SQL UNION. Thanks a lot for participating and helping me, but I knew I had type mismatch, WHAT I didn't know is how to troubleshoot.

这篇关于如何解决 Oracle 错误 ORA-01790?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Execute complex raw SQL query in EF6(在EF6中执行复杂的原始SQL查询)
Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)