小编kum*_*mar的帖子

加密列上的模式匹配

即使在 SQL Server 2019 版本中,我也无法对加密列进行模式匹配。

SQL Server 2019

加密前

select * 
from messageencryption;     
Run Code Online (Sandbox Code Playgroud)

输出:

id    msgcode   msg      
-------------------------------------------
1      AA56B    this is a text message     
2      AA56C    this is a text123 message    
3      AA56D    EXTENDED BOOTCAMP      
4      AA56E    extended bootcamp       
5      AA56J    advance happy new year       
6      AA56K    oneteam       
7      AA56L    cricket team consists of 11 players       
8      AA56M    indian cricket team      

select * 
from messageencryption 
where msg like '%team%';       
Run Code Online (Sandbox Code Playgroud)

输出:

id   msgcode   msg              
----------------------------
6    AA56K     onesmallteam                   
7    AA56L …
Run Code Online (Sandbox Code Playgroud)

sql-server encryption always-encrypted

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

标签 统计

always-encrypted ×1

encryption ×1

sql-server ×1