0
|
IceBall09Lv6中级互助发布于2022-10-25 14:22
|
select name, '1' as ri, 1 as values from 表名 where values = 1.5 union all select name, '2' as ri, 0.5 as values from 表名 where values = 1.5 -- 如果还有别的不是1.5的也需要的,就再拼接上 union all select name, ri, 0.5 as values from 表名 where values <> 1.5
|
|
|