2020年11月2日11:33:24-数据库表敏感字段值脱敏处理

UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'一二' WHERE SUBSTR(A00,1,1)='1';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'三一' WHERE SUBSTR(A00,1,1)='2';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'二三' WHERE SUBSTR(A00,1,1)='3';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'四五' WHERE SUBSTR(A00,1,1)='4';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'三七' WHERE SUBSTR(A00,1,1)='5';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'一五' WHERE SUBSTR(A00,1,1)='6';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'五三' WHERE SUBSTR(A00,1,1)='7';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'七九' WHERE SUBSTR(A00,1,1)='8';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'八九' WHERE SUBSTR(A00,1,1)='9';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'六七' WHERE UPPER(SUBSTR(A00,1,1))='A';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'八六' WHERE UPPER(SUBSTR(A00,1,1))='B';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'八七' WHERE UPPER(SUBSTR(A00,1,1))='C';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'三五' WHERE UPPER(SUBSTR(A00,1,1))='D';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'六七' WHERE UPPER(SUBSTR(A00,1,1))='E';
UPDATE A01 SET A0101=SUBSTR(A0101,1,1)||'零零' WHERE UPPER(SUBSTR(A00,1,1))='F';
SELECT * FROM A01;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值