0

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.

1
  • 1
    Can you share the exact error you're getting? Commented Dec 1, 2017 at 14:18

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.