home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,032 of 2,288   
   Walt to Guido Konsolke   
   Re: How can create case-insensitive data   
   30 Jan 04 11:45:43   
   
   From: walt@boatnerd.com.invalid   
      
   Guido Konsolke wrote:   
   >   
   > "Madjid Nasiri" wrote...   
   > > Hi,   
   > > I am basic in oracle. My Old programs write with Delphi and   
   > Databases:   
   > > Access, Paradox, MySQL, Microsoft SQL.   
   > > I write my code (SQL code) case-insensitivae, but now i need use   
   > > oracle database. The Oracle by default is case-sensitive, How can   
   > used   
   > > case-insensitive in oracle.   
   > >   
   > > Thanks   
   > > Madjid Nasiri   
   >   
   > Hi Madjid,   
   >   
   > I hope you are going to use a version >= 8.1.7 (9.2.0.4 would be   
   > best).   
   > Since you don't provide much infos to play around with, here are 2 two   
   > possible meanings of your post:   
   > 1. You want to store data case insensitive: do an 'insert...   
   > values(upper('Abcd'))...'.   
   > This will put your data in upper case into the tables.   
   > 2. Your data will be mixed-case and you want to select them case   
   > insensitive:   
   > create 'function based indexes' on every column you want to use in   
   > your where-clauses.   
   > Then 'select ... where  = 'ABCD'.   
   >   
   > If my assumptions about your intention are wrong, please explain it a   
   > little.   
      
   Sounds to me like a third possibility:   
      
   3.  He has a body of SQL that is case-insensitive and mistakenly   
   believes that Oracle SQL is case sensitive.   
      
   Majid,   
      
   Oracle SQL is case insensitive.  The character data stored in Oracle is   
   case sensitive.   
      
   i.e. the following statements are identical:   
     SELECT * from FOO where COL = 'BAR';   
     select * From Foo WHERE col = 'BAR';   
      
   These two are not:   
     SELECT * from FOO where COL = 'BAR';   
     SELECT * from FOO where COL = 'Bar';   
      
   Oracle provides string functions UPPER() and LOWER() to deal with   
   case-sensitivity issues.  There's also INITCAP() but it doesn't always   
   give you what you want.   
      
      
   --   
   //-Walt   
   //   
   // http://tinyurl.com/3xqyq   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca