How do I remove case-sensitive settings from Oracle?! __oracle

Source: Internet
Author: User

When querying the data,

SQL Server is not case-sensitive by default. If you want to differentiate, you need additional settings.

Oracle is case sensitive by default. If you don't differentiate, you need additional settings.

The following are the scripting settings that are not differentiated:
ALTER session SET Nls_comp=ansi;
ALTER session SET Nls_sort=binary_ci;

But this is in the current session, that is, every time you initiate a query, you need to do this to work.

But there are other theories on the web that are dealt with in the following ways:

SELECT * from TUSER where Lower (user_code) = ' Billy ' 
or 
select * from TUSER where upper (User_code) = ' Billy ' 

But this approach can lead to two problems:


1, the use of lower or upper will not be able to use the index.
2, the proposed data in the time you should be data format.


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.