我已經在表中加密了一列mob_no。 加密後的列,存儲過程出現錯誤。如何從始終加密的列中選擇存儲過程參數的值
我已經加入下面
create procedure get_cut
@mobNo varchar(50),
@custId int
As
Begin
if(@mobNo = null or @mobNo = '')
Begin
select @mobNo = mob_no
from table1 where cust_id = @custId
End
select cust_name from tbl_cust where mob_no = @mobNo and cust_id = @custId
End
的SP當運行這個SP,我得到了波紋管錯誤
消息33299,爲列/變量 '@mobNo' 加密方案不匹配。 爲列/變量加密方案是(將encryption_type = 'PLAINTEXT') 和近線表達式 '9' 希望它是(將encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'XXXX' ,column_encryption_key_database_name ='mydb') (或更弱)。