Results 1 to 3 of 3

Thread: [RESOLVED] [Oracle 10g XE] Case Insensitive field

Threaded View

  1. #1

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Resolved [RESOLVED] [Oracle 10g XE] Case Insensitive field

    Hi all,
    I'm playing around with the sample database in Oracle 10g XE. I'm trying to select records based upon the text DEPARTMENT_NAME field in a case insensitive manner. For example, if I search for "admininstration" I would like it to match the "Administration" department.
    I have this working in this fashion, but just wondering if there is some built-in property in the command or if this is it? Thanks.
    Code:
            Dim SQLString As String = _
                "SELECT * " & _
                "FROM departments " & _
                "WHERE UPPER(department_name) = :deptName"
    
            Dim cmd As New OracleCommand(SQLString, conn)
            cmd.Parameters.Add(New OracleParameter("deptName", (Me.TextBox2.Text).ToUpper()))
    Last edited by nmadd; Jul 29th, 2007 at 11:51 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width