5. 创建视图vw_vp:查询小米Note2的供应商姓名(vname)、供应商地址(vaddress)、邮政编码(vzip),产品价格(pprice)。
程序员文章站
2024-03-20 14:28:28
...
CREATE VIEW vw_vp AS SELECT
vname,
vaddress,
vzip,
pprice
FROM
vendor,
recruit,
product
WHERE
vendor.vid = recruit.vid
AND product.pid = recruit.pid
AND product.pname = '小米Note2'
GROUP BY
vname
上一篇: 会话Session和Cookie
下一篇: 购物车实现