MySQL SQL statement method to hide the middle four digits of the mobile phone number

MySQL SQL statement method to hide the middle four digits of the mobile phone number

First query table structure (sys_users):

SELECT * from sys_users;


The first method: Hide the middle four digits of the mobile phone number

select REPLACE(mobile, SUBSTR(mobile,4,4), 'XXXX') from sys_users


The second method: Hide the middle four digits of the mobile phone number (recommended)

select insert(mobile, 4, 4, 'XXXX') from sys_users;


The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • AngularJs custom filter to hide mobile phone number information
  • C# uses regular expressions to hide the middle four digits of the mobile phone number as *
  • How to replace the middle digits of a mobile phone number with * and hide the last few digits of an IP address using PHP
  • C# implementation method of hiding sensitive information such as mobile phone number and email address
  • PHP implements a custom function to hide the middle four digits of a mobile phone number with asterisks (*)
  • PHP uses asterisks to hide part of the user name, ID card, IP, mobile phone number, etc.
  • Regular expression to hide the middle 4 digits of the mobile phone number or only display the last 4 digits

<<:  Vue project @change multiple parameters to pass multiple events

>>:  Example of how to set WordPress pseudo-static in Nginx

Recommend

Vue uses v-model to encapsulate the entire process of el-pagination components

Use v-model to bind the paging information object...

MySQL 8.0.11 installation and configuration method graphic tutorial (win10)

This article records the installation and configu...

IIS7 IIS8 http automatically jumps to HTTPS (port 80 jumps to port 443)

IIS7 needs to confirm whether the "URL REWRI...

HTML+CSS to create a top navigation bar menu

Navigation bar creation: Technical requirements: ...

js implements a simple shopping cart module

This article example shares the specific code of ...

How to process blob data in MySQL

The specific code is as follows: package epoint.m...

Pure CSS3 code to implement a running clock

Operation effectCode Implementation html <div ...

Nginx configuration SSL and WSS steps introduction

Table of contents Preface 1. Nginx installation 1...

Solution to MySQL root password error number 1045

Stop MySQL Service Windows can right-click My Com...

Detailed explanation of the principle of Vue monitoring data

Table of contents 1. Introduction II. Monitoring ...

How to Develop a Progressive Web App (PWA)

Table of contents Overview Require URL of the app...

Building a selenium distributed environment based on docker

1. Download the image docker pull selenium/hub do...

Detailed installation and uninstallation tutorial for MySQL 8.0.12

1. Installation steps for MySQL 8.0.12 version. 1...

Summary of some points to note when registering Tomcat as a service

Here are some points to note when registering Tom...