ORA-01790

You can try correcting this UNION query by using a conversion function (ie: TO_CHAR function, TO_NUMBER function, or TO_DATE function) to convert the values to matching data types.
For example:
SELECT supplier_name
FROM orders
UNION
SELECT TO_CHAR(quantity)

FROM orders_audit;In this example, we've used the TO_CHAR function to convert the quantity column to a data type that is compatible with the supplier_name column.

亲测,奈斯。

发布了49 篇原创文章 · 获赞 16 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq_26929957/article/details/88654268