【发布时间】:2013-09-10 15:07:19
【问题描述】:
有一张这样的桌子:
art. type price
a b 1
a c 2
是否可以通过选择将过滤后的内容显示为:
art. type price
a b
a c 2
如果类型为“b”,则不显示价格数据?
select art, type, price from x
where type="b" hide price
【问题讨论】:
-
决定一个字段是否应该隐藏的条件是什么?
标签: mysql select if-statement where data-representation