A bug in Oracle using the CAST () function

Source: Internet
Author: User
Tags truncated


Today, when using Oracle, I accidentally found a small problem, that is, when using the cast function to convert the type, the text is truncated, now posted, as follows:



Select Cast (' not filled ' as Nvarchar2 () as Hg from Dual

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/40/B8/wKioL1PPUU3CYE7PAAAb5fvsVpw620.png "title=" 11.PNG "alt=" Wkiom1pptiljxrtraaawoo1yxw4206.png "/>



Select Cast (' not filled in ' as Nvarchar2) as Hg from Dual

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/40/B4/wKioL1PPThqB99e_AAAc317N1a8622.png "style=" float: none; "title=" 21.PNG "alt=" Wkiol1ppthqb99e_aaac317n1a8622.png "/>



Select Cast (' not filled in what ' as Nvarchar2 () as Hg from Dual

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/40/B4/wKiom1PPTQCwhwN4AAAadATmDTU219.png "style=" float: none; "title=" 31.PNG "alt=" Wkiom1pptqcwhwn4aaaadatmdtu219.png "/>



Conclusion: Some Chinese are truncated, such as testing with ' Please select ', ' non-nuclear tube ', and ' What ' can be displayed normally, has ruled out length and character set problems, and its Varchar,varchar2,nvarchar type does not have this problem.




This article is from the "front-end technical article Application Sharing" blog, please be sure to keep this source http://viphyy.blog.51cto.com/6403455/1445085

A bug in Oracle using the CAST () function

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.