Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Oracle select case sensitive

  • 16-07-2007 11:49AM
    #1
    Registered Users, Registered Users 2 Posts: 1,559 ✭✭✭


    Hi
    Im sending a select sql statement to oracle using sql plus.

    Im searching for a certain word and if it doesnt exist in the table then an error comes up.

    Problem is it is case sensitive.

    How can I make it so it ignores the case?


Comments

  • Registered Users, Registered Users 2 Posts: 32,132 ✭✭✭✭is_that_so


    quinnd6 wrote:
    Hi
    Im sending a select sql statement to oracle using sql plus.

    Im searching for a certain word and if it doesnt exist in the table then an error comes up.

    Problem is it is case sensitive.

    How can I make it so it ignores the case?

    You can always wrap the variable using lower
    For example
    select address,id from table where lower(inputname)=lower(table.name);
    


  • Registered Users, Registered Users 2 Posts: 273 ✭✭stipey


    I find that google is good for these types of questions. You will probably get an answer quicker than waiting for somebody to read and respond to your post.

    Also, Oracle have excellent documentation on their website - oracle.com


Advertisement