简体   繁体   中英

Concat function has not be run in Oracle SQL developer

When I run my whole SQL query then I got an error. CONCAT() function has not be run while execution:

..... 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 function takes only 2 arguments. You must be getting invalid number of Arguments here.

Use

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

No need to explicitly cast your variable here. Oracle will implicitly handle this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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