This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, When I do a search in a DB2 database table using a SQL string, for example, select * from table1 where column1 like 'Abc'. Does the select condition in the where clause (e.g., 'Abc' in the above example) case sensitive or not? If is case sensitive, then how can I select everything from the table containing abc regardless the case of the characters?
to avoid case sensitivity you can use a DB2 procedure in your query (example is using Oracle) like: "select * from table where UPPER( column1 ) like UPPER( '" + string_val + "') "); *note: UPPER is the Oracle procedure for upper case conversion, not sure what the equivalent DB2 procedure is You can find out if the column is case sensitive by doing some test queries. Jamie
You only have to be concerned about the DATA regarding case. For reserved words and metadata it doesn't matter ('cause DB2 is going to treat those as uppercase anyways). (Just throwing in my two cents worth)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com