PCB MS SQL SERVER field with lowercase letters updated to uppercase

Source: Internet
Author: User
Tags lowercase

Today in the pre-trial completion times the following error is caused because the SQL Server data field is lowercase and the Oracle database is capitalized.

How to solve this problem, very simple. The SQL is posted here.

1. Identify the production model with lowercase letters-only filter the rigid board, not included in the FPC

--identify the production model with lowercase letters-only the rigid board, the FPC is not includedSELECT *  fromMktxhglbWHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenSELECT *  fromMktdeliveryWHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenSELECT *  fromMkthtpsbWHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenSELECT *  fromPpeecnxhbWHERENewpdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Newpdctno)= TenSELECT *  fromPpeecnxhbWHEREOldpdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Oldpdctno)= Ten 

2. Batch update the production model with lowercase letters to uppercase-filter only rigid board, FPC not included

--batch update of the production model with lowercase letters to uppercase-filter only rigid board, FPC not includedUpdateMktxhglbSETPdctno= UPPER(Pdctno)WHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenUpdateMktdeliverySETPdctno= UPPER(Pdctno)WHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenUpdateMkthtpsbSETPdctno= UPPER(Pdctno)WHEREPdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Pdctno)= TenUpdatePpeecnxhbSETNewpdctno= UPPER(Newpdctno)WHERENewpdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Newpdctno)= TenUpdatePpeecnxhbSETOldpdctno= UPPER(Oldpdctno)WHEREOldpdctno like '%[a-z]%'COLLATE Chinese_prc_bin and LEN(Oldpdctno)= Ten

PCB MS SQL SERVER field with lowercase letters updated to uppercase

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.