简体   繁体   中英

How can I achieve unicode normal form C with collation in MySQL, db2, Derby or Oracle databases?

I have tried using different collation methods across different implementations of SQL databases, but am unable to achieve complete normalization. Does anyone have any tips for this in any of the above implementations?

The best way is to TEST each RDBS with different collating sequence. Some of them could not be aware about different collate sequences (DB2, Oracle), and others can support many of them (Derby).

For example, in DB2, you can provide many different collating sequence at the database creation time. Once the database is created, you cannot modify the locale settings (I wrote an article about that in DB2 )

Remember that there are different kinds of methods to stored Unicode characters. Unicode is a table, but storage Unicode is something different, and this is the origin of your problem. You must test with th UCA (Unified Collation Algorithm) of the different RDBS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM