D
D
Denis Black2017-02-03 10:30:24
ruby
Denis Black, 2017-02-03 10:30:24

RUBY - OCI8, Why doesn't a complex SQL query work?

Hello everyone, when connecting to the database cursor = connection.parse("Complex SQL query"), the cursor is empty, i.e. as if the query failed. What could be the problem?
Everything is fine with the query, it directly gives the data that is needed.

With a simple SQL query, it works fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2017-02-03
@qskyhigh

It's hard to tell without having the dataset itself.
Maybe there are no matches for the given REGEXP_SUBSTR pattern. Try first to search with REGEXP_SUBSTR for specific lines with a simple query, without JOIN, using WHERE REGEXP_LIKE. If they are under the given expression, then the reason is different.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question