相关疑难解决方法(0)

SQL Server SQL_Latin1_General_CP1_CI_AS可以安全地转换为Latin1_General_CI_AS吗?

我们有一个遗留数据库,其中一些(较旧的)列使用"SQL_Latin1_General_CP1_CI_AS",最近的更改使用了"Latin1_General_CI_AS".

这是一个痛苦,因为连接需要额外的COLLATE语句才能工作.

我想把所有内容都改为"Latin1_General_CI_AS".从我可以收集的内容来看,它们或多或少是相同的排序规则,在此过程中我不会丢失数据......

有谁知道是否是这种情况?

sql sql-server collation

22
推荐指数
4
解决办法
6万
查看次数

查询SQL中字符串的完全匹配

我想查询数据库表中字符串的完全匹配.

当我将查询编写为

select description from tproduct where description like '%diamond%'
Run Code Online (Sandbox Code Playgroud)

它运行并将结果作为wild card查询提供.例如,我有ringdiamond,diamondmaster等.

但我想只获得"钻石".

为此,我做了:

select description from tproduct where description = 'diamond'
Run Code Online (Sandbox Code Playgroud)

但它给出了一个错误:

错误:'where子句'中的未知列'diamond'

描述栏包含:

This bracelet is composed of round diamond surrounded by milgrain detailing. Its secure setting prevents it from twisting and ensures it will sit impeccably on her wrist.


This stylish design is the perfect accessory for the day or evening. Akoya cultured pearls are lined up by a string of bezel-set round diamond.
Run Code Online (Sandbox Code Playgroud)

mysql sql

5
推荐指数
1
解决办法
4万
查看次数

无法执行从SonarQube 5.6.1 LTS到6.0的数据库迁移

我最近尝试从SonarQube 5.6.1 LTS升级到6.0.

我使用了升级指南但是我遇到了数据库迁移错误.

无法执行数据库迁移:org.sonar.db.version.v60.CleanUsurperRootComponents com.microsoft.sqlserver.jdbc.SQLServerException:无法解决等于操作中"SQL_Latin1_General_CP1_CS_AS"和"Latin1_General_CS_AS"之间的排序规则冲突.

我正在使用SQL 2014和SQL_Latin1_General_CP1_CS_AS.

我用于设置以下指南:

SonarQube Setup Gruide for .Net Users v.1.3

Sonar数据库中有157列具有错误的排序规则"Latin1_General_CS_AS".

问候

丹尼尔

sql-server sonarqube sonarqube-ops

5
推荐指数
1
解决办法
1043
查看次数

标签 统计

sql ×2

sql-server ×2

collation ×1

mysql ×1

sonarqube ×1

sonarqube-ops ×1