473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

accent insensitive diacritic insensitive data retrieval

Hi,

Is there any option / feature in DB2 database where one can retrieve
data from the database by treating the accented / diacritic characters
equivalent to their English characters. For example I would like "à"
is treated equivalent to "a" or "é" is treated equivalent to "e" so
that the SELECT query can retreive data irrespective if it has accented
or non-accented characters.

This is required because we have French and German names in our
database but the support personnel who usually searches the database
has an English keyboard as a result entering the accented characters in
the application is difficult.

Please let me know how could I resolve thhe problem.

Thanks & Regards,
Vinay

Nov 12 '05 #1
2 3261
Vinay,
Add a new column in the table called S_name. create a UDF to remove all
the accent from the name column and save the result in upper case in
the S_name column.
For example:
If the valumn in name column is 'éééààà', then the value in
S_name is 'EEEAAA'.

In your query, you use column S_name as search column and display
column name. (User enter no-accent string for searching, you conver
string into Upper case first.)

HTH,

Bill

vin...@rocketmail.com wrote:
Hi,

Is there any option / feature in DB2 database where one can retrieve
data from the database by treating the accented / diacritic characters equivalent to their English characters. For example I would like "à"
is treated equivalent to "a" or "é" is treated equivalent to "e" so
that the SELECT query can retreive data irrespective if it has accented or non-accented characters.

This is required because we have French and German names in our
database but the support personnel who usually searches the database
has an English keyboard as a result entering the accented characters in the application is difficult.

Please let me know how could I resolve thhe problem.

Thanks & Regards,
Vinay


Nov 12 '05 #2
Dear Bill,

Thanks for the response, I had already found similar solution in the
db2 user group. But this solution will increase the tablespace
unnecessarily.

Actually I was looking at some database configuration parameter which
could allow diacritic insensitive search (something similar to the one
available in Oracle).

Thanks & Regards,
Vinay

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vladish | last post by:
....in the easiest possible way. Do you have any idea? Any function or regexp? Thanx Spaiky
114
by: muldoon | last post by:
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the...
5
by: Madjid Nasiri | last post by:
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....
3
by: Matthias HALDIMANN | last post by:
My SQL Server 2000 does not use the accent insensitive collation setting (collation containing _AI) in full-text serches: While SELECT * FROM <table> WHERE <column> LIKE '%a%' returns 'Mäuse',...
3
by: Darren Jensen | last post by:
Hi, Does anyone have a function which replaces accent chars from a string with the non-accented equivalent? For example 'hôpital' should return 'hopital'. Thank you in advance.
1
by: Fabrice | last post by:
Hello, I have encountered a deep problem with accent and I don't understand why. I m preparing a multi-language website. French and English so far. With french, we have accents and ......
3
by: schwartzenberg | last post by:
Dear friends, I have just run into a strange DB2 problem. Something i'd some of you would answer, if only shortly. My basic question is: How do i ensure 'insensitive' (ie static) cursors...
1
by: Rodrigo Costa | last post by:
Hi people... can anyone help on how to make a full-text search accent insensitive on a mdb database ? thx
3
by: Gordowey | last post by:
Hi all, I have an easy question. I have a table with names, for example name -------- José José Albert ALBERT
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.