简体   繁体   English

Concat函数尚未在Oracle SQL Developer中运行

[英]Concat function has not be run in Oracle SQL developer

When I run my whole SQL query then I got an error. 当我运行整个SQL查询时,出现错误。 CONCAT() function has not be run while execution: 执行时未运行CONCAT()函数:

..... concat(cast(col1 as varchar2(10)),'-', col2) = 'value'

Below this one is part of the query but I stuck on this line only. 在这下面是查询的一部分,但我只停留在这一行上。 Why Concat function has not be run. 为什么尚未运行Concat函数。

CONCAT function takes only 2 arguments. CONCAT函数仅接受2个参数。 You must be getting invalid number of Arguments here. 您必须在此处获得invalid number of Arguments

Use 采用

... col1||'-'||col2 = 'value'....

No need to explicitly cast your variable here. 无需在此处显式转换变量。 Oracle will implicitly handle this. Oracle将对此进行隐式处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM