【数据库查询--计算机、电脑系列】--查询价格最高的打印机型号。
分析:涉及到printer这个表注意**>=all 的用法**在查找最大值时很有用上代码:select distinct modelfrom printerwhere price >= all (select pricefrom printer)...
·
分析:涉及到printer这个表
注意**>=all 的用法**
在查找最大值时很有用
上代码:
select distinct model
from printer
where price >= all (
select price
from printer
)
更多推荐


所有评论(0)