Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Location
    Washington DC area
    Posts
    1,770

    Question Unanswered: SQL Statement Error

    I get this error after this sql statement. How can I use a record and see if that exists in a string that I give it?

    SELECT word
    FROM BT_WORD_DICTIONARY
    WHERE '283nsnNDOIN$&(SI@*S#ABBREVs9(*' LIKE '%' + word + '%';

    And got “ORA-01722: invalid number”
    Last edited by garrydawkins; 10-17-12 at 12:52.

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    the plus sign ("+") is used to add two numbers; which I suspect is NOT what you desire to do
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    String concatenation in PL/SQL is by ||, so you should have:
    Code:
    WHERE '283nsnNDOIN$&(SI@*S#ABBREVs9(*' LIKE '%' || word || '%';

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •