标签:from one hid hone when ble 替换 nbsp mic
1.多值的替換
select priority,(case priority when 1 then ‘紧急‘ when 2 then ‘高‘ when 3 then ‘中‘ when 4 then ‘低‘ else ‘其他‘ end ) from table_name
2.單值替換
SELECT id,(CASE WHEN sex = ‘0‘ THEN ‘女‘ ELSE ‘男‘ END ) AS sex FROM table_name
SELECT replace(phone,‘1322‘,‘1380‘) FROM table_name (replace(字段名,‘需要替换的文字‘,‘替换成的文字‘))
标签:from one hid hone when ble 替换 nbsp mic
原文地址:https://www.cnblogs.com/zzbj-wwzh/p/10270882.html