SELECT #phone手机号脱敏处理IF( phone='', '', CONCAT(LEFT(phone, 3), '****', RIGHT(phone,4))) AS dephone,#cardno身份证号脱敏处理IF( cardno='', '', CONCAT(LEFT(cardno, 3), '************', RIGHT(phone,4))) AS decardno,#realname姓名脱敏处理CASEWHEN CHAR_LENGTH(realname) = 0 THEN ''WHEN CHAR_LENGTH(TRIM(realname)) = 1 THEN realnameWHEN CHAR_LENGTH(TRIM(realname)) = 2 THEN CONCAT(LEFT(realname, 1),'*')ELSE CONCAT(LEFT(realname, 1),REPEAT('*', CHAR_LENGTH(TRIM(realname)) - 2),RIGHT(realname, 1))END AS derealname FROM biz_user_info;
1200字范文,内容丰富有趣,写作的好帮手!