SQL How to replace values of select return?

前端 未结 7 1229
无人共我
无人共我 2020-12-04 18:02

In my database (MySQL) table, has a column with 1 and 0 for represent true and false respectively.

But in S

7条回答
  •  春和景丽
    2020-12-04 18:34

    Replace the value in select statement itself...

    (CASE WHEN Mobile LIKE '966%' THEN (select REPLACE(CAST(Mobile AS nvarchar(MAX)),'966','0')) ELSE Mobile END)

提交回复
热议问题