Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:22:30+00:00 2026-06-11T16:22:30+00:00

The SQL statement: SELECT * FROM ( SELECT rownum rid ,condata.* FROM ( SELECT

  • 0

The SQL statement:

SELECT * FROM (
    SELECT rownum rid ,condata.*
    FROM (
        SELECT max(ODP_CTT.NUM_CTT_ID) conid  ,ODP_CTT.VC2_BUS_CTT_ID AS ecpid  ,ODP_CTT.vc2_title AS title   ,ODP_CTT.vc2_briefly AS description   ,EC_ECP_INFO.vc2_price AS opri   ,ec_ecp_info.vc2_discount AS npri   ,max(ODP_CTT.vc2_dft_icon) AS iurl   ,to_char(ec_ecp_info.dat_update, 'yyyymmddhhmiss') AS upt   
        FROM ODP_CTT ,ec_ecp_info
        where odp_ctt.num_status = 3
        and (
            lower(vc2_title) LIKE lower('%?%')
            or lower(ODP_CTT.vc2_briefly) LIKE lower('%?%')
        )
        AND ec_ecp_info.vc2_ecp_id = odp_ctt.VC2_BUS_CTT_ID
        GROUP BY ODP_CTT.VC2_BUS_CTT_ID   ,ODP_CTT.vc2_title ,ODP_CTT.vc2_briefly   ,EC_ECP_INFO.vc2_price ,ec_ecp_info.vc2_discount  ,to_char(ec_ecp_info.dat_update, 'yyyymmddhhmiss')
    ) condata
    order by  to_number (upt) desc
)

and I set:

stmt.setString(1, keyword_f);
stmt.setString(2, keyword_f);

and I get :

java.sql.SQLException: Invalid column index at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:22:31+00:00Added an answer on June 11, 2026 at 4:22 pm
    lower(vc2_title) LIKE lower('%?%')
    or lower(ODP_CTT.vc2_briefly) LIKE lower('%?%')
    

    I don’t think you can put the ? inside a string. You probably need to do this:

    lower(vc2_title) LIKE lower(?)
    or lower(ODP_CTT.vc2_briefly) LIKE lower(?)
    

    Then in the Java:

    stmt.setString(1, "%" + keyword_f + "%");
    stmt.setString(2, "%" + keyword_f + "%");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this SQL statement: SELECT * FROM history WHERE (fk_person = 2119) AND
I have an SQL statement: SELECT * FROM customers WHERE BINARY login='xxx' AND password='yyyy'
Suppose there is a SQL statement: select * from A order by cola In
I try to use the SQL statement SELECT * FROM table ORDER BY column
I want to write an SQL statement like below: select * from tbl where
I want to generate this SQL statement in LINQ: select * from Foo where
I have this very simple sql statement: SELECT max_dose FROM psychotropes WHERE (patient_meds.psychotrope =
I'm trying to do the below sql statement in GORM select * from table1
This SQL statement SELECT `ip`, `when` FROM `metrics` WHERE `vidID` = '1' GROUP BY
There is sql statement select distinct create_date from articles Is it possibele to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.