时间:2021-07-01 10:21:17 帮助过:40人阅读
select case when H=1 then ‘在售‘
when H=2 then ‘售完‘ end
as H from HH
select * from HH
--case when then end
select HID,case H when 1 then ‘在售‘
when 2 then ‘售完‘ end as HHu from HH
数据库在中显示1或2,在程序中代表不同状态
标签:nbsp 数据库 显示 hid case when rom -- end bsp