sql 字段街区拼接

SELECT
phone,
concat(
substring(phone, 1, 3),
'****',
substring(phone, 8, 4)
) phone_new
FROM
dw_user
WHERE
phone IS NOT NULL
AND phone <> ''
LIMIT 100,
5

猜你喜欢

转载自cooler1217.iteye.com/blog/2236798