Oracle NChar类型的注意事项

前端之家收集整理的这篇文章主要介绍了Oracle NChar类型的注意事项前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

You can bind or define a Java string against anNCHARcolumn without explicitly specifying the form of use argument. This implies the following:

  • If you do not specify the argument in thesetString()method,then JDBC assumes that the bind or define variable is for the sqlCHARcolumn. As a result,it tries to convert them to the database character set. When the data gets to the database,the database implicitly converts the data in the database character set to the national character set. During this conversion,data can be lost when the database character set is a subset of the national character set. Because the national character set is either UTF8 or AL16UTF16,data loss would happen if the database character set is not UTF8 or AL32UTF8.

  • Because implicit conversion from sqlCHARto sqlNCHARdata types happens in the database,database performance is degraded.

原文链接:https://www.f2er.com/oracle/210788.html

猜你在找的Oracle相关文章