SELECT
CASE
WHEN CarType = 1 THEN
'*******'
ELSE
Plate
END AS Plate,
CarType
FROM
Cars;

Sql 查询结果 根据某个字段值 变更另外一个字段值 case when-LMLPHP

05-02 22:35