SQL Server Notes

Source: Internet
Author: User

Question one: This red symbol is taken off

Have not seen the symbol of red, try to paste these symbols out to Notepad found it is garbled, try to paste it into SQL Query Analyzer, found that it shows blank. For such data, always want to find this ACSI code, then the problem is solved. The results found a lot of relevant information, there is no similar problem. Finally, using straight-line thinking, directly simply put that character into the SQL Query Analyzer window, the solution is as follows:

SELECT
[F0l_mid],
LTrim (RTrim (REPLACE ([F0l_mid], ","))
from [Pfvaults]. [dbo]. [OMEGAFLD]


Problem to solve, which master if you meet the red character, but also to share, see what it is


Filter out the special characters of Fol_mid string before and after the red, starting with a space or ending with a space (note the condition after where)

SELECT
[F0l_mid]
from [Pfvaults]. [dbo]. [OMEGAFLD]
where
[F0l_mid] like '% ' or
[F0l_mid] like '% '







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.